diff options
author | Peter Zotov <whitequark@whitequark.org> | 2013-11-06 09:45:53 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2013-11-06 09:45:53 +0000 |
commit | 6b5e8b940984483b95f2c592b3718cd9fcca28c2 (patch) | |
tree | e8c86c62ed3865fa9321cb90fb9e9228a9928110 | |
parent | 04f59819961ce5d7b2c874fc8a44486157252def (diff) | |
download | bcm5719-llvm-6b5e8b940984483b95f2c592b3718cd9fcca28c2.tar.gz bcm5719-llvm-6b5e8b940984483b95f2c592b3718cd9fcca28c2.zip |
[llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, Disassembler
Also, properly name the functions.
llvm-svn: 194141
-rw-r--r-- | llvm/include/llvm-c/Target.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h index 834b63a475a..7261b0f9914 100644 --- a/llvm/include/llvm-c/Target.h +++ b/llvm/include/llvm-c/Target.h @@ -149,8 +149,8 @@ static inline LLVMBool LLVMInitializeNativeTarget(void) { /** LLVMInitializeNativeTargetAsmParser - The main program should call this function to initialize the parser for the native target corresponding to the host. */ -static inline LLVMBool LLVMInitializeNativeTargetAsmParser(void) { -#ifdef LLVM_NATIVE_TARGET +static inline LLVMBool LLVMInitializeNativeAsmParser(void) { +#ifdef LLVM_NATIVE_ASMPARSER LLVM_NATIVE_ASMPARSER(); return 0; #else @@ -161,8 +161,8 @@ static inline LLVMBool LLVMInitializeNativeTargetAsmParser(void) { /** LLVMInitializeNativeTargetAsmPrinter - The main program should call this function to initialize the printer for the native target corresponding to the host. */ -static inline LLVMBool LLVMInitializeNativeTargetAsmPrinter(void) { -#ifdef LLVM_NATIVE_TARGET +static inline LLVMBool LLVMInitializeNativeAsmPrinter(void) { +#ifdef LLVM_NATIVE_ASMPRINTER LLVM_NATIVE_ASMPRINTER(); return 0; #else @@ -173,8 +173,8 @@ static inline LLVMBool LLVMInitializeNativeTargetAsmPrinter(void) { /** LLVMInitializeNativeTargetDisassembler - The main program should call this function to initialize the disassembler for the native target corresponding to the host. */ -static inline LLVMBool LLVMInitializeNativeTargetDisassembler(void) { -#ifdef LLVM_NATIVE_TARGET +static inline LLVMBool LLVMInitializeNativeDisassembler(void) { +#ifdef LLVM_NATIVE_DISASSEMBLER LLVM_NATIVE_DISASSEMBLER(); return 0; #else |