projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dec9803
)
Initialize the target info via the InitializeNativeTarget() hook.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 15 Jul 2009 10:29:55 +0000
(10:29 +0000)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/include/llvm/Target/TargetSelect.h
b/include/llvm/Target/TargetSelect.h
index 19b660b52da31c07d03be313978adec3ff6c1c0d..a360f731ba84dbad68f39840872c29359babdfdb 100644
(file)
--- 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;