From: Daniel Dunbar Date: Wed, 15 Jul 2009 10:29:55 +0000 (+0000) Subject: Initialize the target info via the InitializeNativeTarget() hook. X-Git-Tag: android-x86-6.0-r1~1003^2~18623 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=aca81c49d9644105551e129d8b12758a08a1deb2;p=android-x86%2Fexternal-llvm.git Initialize the target info via the InitializeNativeTarget() hook. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75768 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetSelect.h b/include/llvm/Target/TargetSelect.h index 19b660b52da..a360f731ba8 100644 --- a/include/llvm/Target/TargetSelect.h +++ b/include/llvm/Target/TargetSelect.h @@ -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;