[llvm-commits] [llvm-gcc-4.2] r74050 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Dale Johannesen
dalej at apple.com
Tue Jun 23 18:25:53 PDT 2009
Author: johannes
Date: Tue Jun 23 20:25:53 2009
New Revision: 74050
URL: http://llvm.org/viewvc/llvm-project?rev=74050&view=rev
Log:
Change initialization calls to understand new ABI,
making llvm-gcc build again.
It would not surprise me if this caused problems
for other external clients as well.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=74050&r1=74049&r2=74050&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Jun 23 20:25:53 2009
@@ -332,7 +332,7 @@
#endif
namespace llvm {
-#define Declare2(TARG, MOD) void Initialize ## TARG ## MOD()
+#define Declare2(TARG, MOD) extern "C" void LLVMInitialize ## TARG ## MOD()
#define Declare(T, M) Declare2(T, M)
Declare(LLVM_TARGET_NAME, Target);
Declare(LLVM_TARGET_NAME, AsmPrinter);
@@ -342,7 +342,7 @@
void llvm_initialize_backend(void) {
// Initialize the LLVM backend.
-#define DoInit2(TARG, MOD) llvm::Initialize ## TARG ## MOD()
+#define DoInit2(TARG, MOD) LLVMInitialize ## TARG ## MOD()
#define DoInit(T, M) DoInit2(T, M)
DoInit(LLVM_TARGET_NAME, Target);
DoInit(LLVM_TARGET_NAME, AsmPrinter);
More information about the llvm-commits
mailing list