[llvm] r194141 - [llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, Disassembler
Peter Zotov
whitequark at whitequark.org
Wed Nov 6 01:45:53 PST 2013
Author: whitequark
Date: Wed Nov 6 03:45:53 2013
New Revision: 194141
URL: http://llvm.org/viewvc/llvm-project?rev=194141&view=rev
Log:
[llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, Disassembler
Also, properly name the functions.
Modified:
llvm/trunk/include/llvm-c/Target.h
Modified: llvm/trunk/include/llvm-c/Target.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Target.h?rev=194141&r1=194140&r2=194141&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Target.h (original)
+++ llvm/trunk/include/llvm-c/Target.h Wed Nov 6 03:45:53 2013
@@ -149,8 +149,8 @@ static inline LLVMBool LLVMInitializeNat
/** 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 LLVMInitializeNat
/** 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 LLVMInitializeNat
/** 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
More information about the llvm-commits
mailing list