From: Peter Zotov Date: Wed, 6 Nov 2013 09:45:53 +0000 (+0000) Subject: [llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, Disassembler X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e669e09d7d4245a88b10a772be3ba97aa5e14923 [llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, Disassembler Also, properly name the functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194141 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h index 834b63a475a..7261b0f9914 100644 --- a/include/llvm-c/Target.h +++ b/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