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 | 81fed34d80080b6fc317cc22864247b993ea32ba (patch) | |
| tree | b01ffded5e75998904d4b14d3e51fe1a50e981c1 /llvm | |
| parent | a8d73996ceaa6a3fcc51993a4895c45d05b42c98 (diff) | |
| download | bcm5719-llvm-81fed34d80080b6fc317cc22864247b993ea32ba.tar.gz bcm5719-llvm-81fed34d80080b6fc317cc22864247b993ea32ba.zip | |
Initialize the target info via the InitializeNativeTarget() hook.
llvm-svn: 75768
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Target/TargetSelect.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetSelect.h b/llvm/include/llvm/Target/TargetSelect.h index 19b660b52da..a360f731ba8 100644 --- a/llvm/include/llvm/Target/TargetSelect.h +++ b/llvm/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; |

