[cfe-commits] r104301 - /cfe/trunk/tools/libclang/CIndex.cpp
Daniel Dunbar
daniel at zuster.org
Thu May 20 16:50:23 PDT 2010
Author: ddunbar
Date: Thu May 20 18:50:23 2010
New Revision: 104301
URL: http://llvm.org/viewvc/llvm-project?rev=104301&view=rev
Log:
Fix __crashreport_info__ declaration.
Modified:
cfe/trunk/tools/libclang/CIndex.cpp
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=104301&r1=104300&r2=104301&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Thu May 20 18:50:23 2010
@@ -48,7 +48,8 @@
#define USE_CRASHTRACER
#include "clang/Analysis/Support/SaveAndRestore.h"
// Integrate with crash reporter.
-extern "C" const char *__crashreporter_info__;
+static const char *__crashreporter_info__ = 0;
+asm(".desc ___crashreporter_info__, 0x10");
#define NUM_CRASH_STRINGS 32
static unsigned crashtracer_counter = 0;
static unsigned crashtracer_counter_id[NUM_CRASH_STRINGS] = { 0 };
More information about the cfe-commits
mailing list