[Lldb-commits] [lldb] r107765 - /lldb/trunk/source/lldb.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed Jul 7 02:33:41 PDT 2010


Author: d0k
Date: Wed Jul  7 04:33:41 2010
New Revision: 107765

URL: http://llvm.org/viewvc/llvm-project?rev=107765&view=rev
Log:
Declare LLDBVersionNumber extern "C" to make sure clang++ mangles it properly. Patch from Jean-Daniel Dupas!

Modified:
    lldb/trunk/source/lldb.cpp

Modified: lldb/trunk/source/lldb.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/lldb.cpp?rev=107765&r1=107764&r2=107765&view=diff
==============================================================================
--- lldb/trunk/source/lldb.cpp (original)
+++ lldb/trunk/source/lldb.cpp Wed Jul  7 04:33:41 2010
@@ -97,10 +97,10 @@
 #endif
 }
 
+extern "C" const double LLDBVersionNumber;
 const char *
 lldb_private::GetVersion ()
 {
-    extern const double LLDBVersionNumber;
     static char g_version_string[32];
     if (g_version_string[0] == '\0')
         ::snprintf (g_version_string, sizeof(g_version_string), "LLDB-%g", LLDBVersionNumber);





More information about the lldb-commits mailing list