diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 10:29:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 10:29:55 +0000 |
commit | aca81c49d9644105551e129d8b12758a08a1deb2 (patch) | |
tree | 3d34e89bfd1f1bf71b3e6e1440462dc8d2ebe8ae | |
parent | dec9803b69ad6dcae9f6f1902e461214a26bd7e7 (diff) | |
download | external_llvm-aca81c49d9644105551e129d8b12758a08a1deb2.zip external_llvm-aca81c49d9644105551e129d8b12758a08a1deb2.tar.gz external_llvm-aca81c49d9644105551e129d8b12758a08a1deb2.tar.bz2 |
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
-rw-r--r-- | include/llvm/Target/TargetSelect.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetSelect.h b/include/llvm/Target/TargetSelect.h index 19b660b..a360f73 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; |