Skip to content

Commit e669e09

Browse files
committed
[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
1 parent 43b2558 commit e669e09

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/llvm-c/Target.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ static inline LLVMBool LLVMInitializeNativeTarget(void) {
149149
/** LLVMInitializeNativeTargetAsmParser - The main program should call this
150150
function to initialize the parser for the native target corresponding to the
151151
host. */
152-
static inline LLVMBool LLVMInitializeNativeTargetAsmParser(void) {
153-
#ifdef LLVM_NATIVE_TARGET
152+
static inline LLVMBool LLVMInitializeNativeAsmParser(void) {
153+
#ifdef LLVM_NATIVE_ASMPARSER
154154
LLVM_NATIVE_ASMPARSER();
155155
return 0;
156156
#else
@@ -161,8 +161,8 @@ static inline LLVMBool LLVMInitializeNativeTargetAsmParser(void) {
161161
/** LLVMInitializeNativeTargetAsmPrinter - The main program should call this
162162
function to initialize the printer for the native target corresponding to
163163
the host. */
164-
static inline LLVMBool LLVMInitializeNativeTargetAsmPrinter(void) {
165-
#ifdef LLVM_NATIVE_TARGET
164+
static inline LLVMBool LLVMInitializeNativeAsmPrinter(void) {
165+
#ifdef LLVM_NATIVE_ASMPRINTER
166166
LLVM_NATIVE_ASMPRINTER();
167167
return 0;
168168
#else
@@ -173,8 +173,8 @@ static inline LLVMBool LLVMInitializeNativeTargetAsmPrinter(void) {
173173
/** LLVMInitializeNativeTargetDisassembler - The main program should call this
174174
function to initialize the disassembler for the native target corresponding
175175
to the host. */
176-
static inline LLVMBool LLVMInitializeNativeTargetDisassembler(void) {
177-
#ifdef LLVM_NATIVE_TARGET
176+
static inline LLVMBool LLVMInitializeNativeDisassembler(void) {
177+
#ifdef LLVM_NATIVE_DISASSEMBLER
178178
LLVM_NATIVE_DISASSEMBLER();
179179
return 0;
180180
#else

0 commit comments

Comments
 (0)