diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-14 23:50:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-14 23:50:31 +0000 |
commit | 1705ab00ab5c9cd43924e24ef440dabda4e5ab60 (patch) | |
tree | 56e314311c0564eab98c8375d52ad6ee0b4fb881 /llvm/include/llvm-c/Target.h | |
parent | 82432f7edf2d089bc947e3b3d2e3d4419d3c4a1f (diff) | |
download | bcm5719-llvm-1705ab00ab5c9cd43924e24ef440dabda4e5ab60.tar.gz bcm5719-llvm-1705ab00ab5c9cd43924e24ef440dabda4e5ab60.zip |
Rename createAsmInfo to createMCAsmInfo and move registration code to MCTargetDesc to prepare for next round of changes.
llvm-svn: 135219
Diffstat (limited to 'llvm/include/llvm-c/Target.h')
-rw-r--r-- | llvm/include/llvm-c/Target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h index 2cd15c3fa30..0c45ae51caa 100644 --- a/llvm/include/llvm-c/Target.h +++ b/llvm/include/llvm-c/Target.h @@ -41,6 +41,11 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef; #include "llvm/Config/Targets.def" #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ +#define LLVM_TARGET(TargetName) \ + void LLVMInitialize##TargetName##MCAsmInfo(void); +#include "llvm/Config/Targets.def" +#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ + /** LLVMInitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to support. */ @@ -67,6 +72,7 @@ static inline LLVMBool LLVMInitializeNativeTarget(void) { #ifdef LLVM_NATIVE_TARGET LLVM_NATIVE_TARGETINFO(); LLVM_NATIVE_TARGET(); + LLVM_NATIVE_MCASMINFO(); return 0; #else return 1; |