OSDN Git Service

Initialize the target info via the InitializeNativeTarget() hook.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 15 Jul 2009 10:29:55 +0000 (10:29 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 15 Jul 2009 10:29:55 +0000 (10:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75768 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetSelect.h

index 19b660b..a360f73 100644 (file)
@@ -58,7 +58,9 @@ namespace llvm {
   inline bool InitializeNativeTarget() {
   // If we have a native target, initialize it to ensure it is linked in.
 #ifdef LLVM_NATIVE_ARCH
-#define DoInit2(TARG)   LLVMInitialize ## TARG ()
+#define DoInit2(TARG) \
+    LLVMInitialize ## TARG ## Info ();          \
+    LLVMInitialize ## TARG ()
 #define DoInit(T) DoInit2(T)
     DoInit(LLVM_NATIVE_ARCH);
     return false;