aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm-c
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-06 09:45:53 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-06 09:45:53 +0000
commite669e09d7d4245a88b10a772be3ba97aa5e14923 (patch)
treeb128a3ebad36c8ce1bde324784f2aeafbce22f5a /include/llvm-c
parent43b255884a9ea4040c2c62dcbb957159cb7f31da (diff)
downloadexternal_llvm-e669e09d7d4245a88b10a772be3ba97aa5e14923.zip
external_llvm-e669e09d7d4245a88b10a772be3ba97aa5e14923.tar.gz
external_llvm-e669e09d7d4245a88b10a772be3ba97aa5e14923.tar.bz2
[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
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Target.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h
index 834b63a..7261b0f 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