forked from OSchip/llvm-project
[llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, Disassembler
Also, properly name the functions. llvm-svn: 194141
This commit is contained in:
parent
04f5981996
commit
6b5e8b9409
|
@ -149,8 +149,8 @@ static inline LLVMBool LLVMInitializeNativeTarget(void) {
|
||||||
/** LLVMInitializeNativeTargetAsmParser - The main program should call this
|
/** LLVMInitializeNativeTargetAsmParser - The main program should call this
|
||||||
function to initialize the parser for the native target corresponding to the
|
function to initialize the parser for the native target corresponding to the
|
||||||
host. */
|
host. */
|
||||||
static inline LLVMBool LLVMInitializeNativeTargetAsmParser(void) {
|
static inline LLVMBool LLVMInitializeNativeAsmParser(void) {
|
||||||
#ifdef LLVM_NATIVE_TARGET
|
#ifdef LLVM_NATIVE_ASMPARSER
|
||||||
LLVM_NATIVE_ASMPARSER();
|
LLVM_NATIVE_ASMPARSER();
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
|
@ -161,8 +161,8 @@ static inline LLVMBool LLVMInitializeNativeTargetAsmParser(void) {
|
||||||
/** LLVMInitializeNativeTargetAsmPrinter - The main program should call this
|
/** LLVMInitializeNativeTargetAsmPrinter - The main program should call this
|
||||||
function to initialize the printer for the native target corresponding to
|
function to initialize the printer for the native target corresponding to
|
||||||
the host. */
|
the host. */
|
||||||
static inline LLVMBool LLVMInitializeNativeTargetAsmPrinter(void) {
|
static inline LLVMBool LLVMInitializeNativeAsmPrinter(void) {
|
||||||
#ifdef LLVM_NATIVE_TARGET
|
#ifdef LLVM_NATIVE_ASMPRINTER
|
||||||
LLVM_NATIVE_ASMPRINTER();
|
LLVM_NATIVE_ASMPRINTER();
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
|
@ -173,8 +173,8 @@ static inline LLVMBool LLVMInitializeNativeTargetAsmPrinter(void) {
|
||||||
/** LLVMInitializeNativeTargetDisassembler - The main program should call this
|
/** LLVMInitializeNativeTargetDisassembler - The main program should call this
|
||||||
function to initialize the disassembler for the native target corresponding
|
function to initialize the disassembler for the native target corresponding
|
||||||
to the host. */
|
to the host. */
|
||||||
static inline LLVMBool LLVMInitializeNativeTargetDisassembler(void) {
|
static inline LLVMBool LLVMInitializeNativeDisassembler(void) {
|
||||||
#ifdef LLVM_NATIVE_TARGET
|
#ifdef LLVM_NATIVE_DISASSEMBLER
|
||||||
LLVM_NATIVE_DISASSEMBLER();
|
LLVM_NATIVE_DISASSEMBLER();
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue