mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
[llvm-c] Add functions for initializing native AsmPrinter, AsmParser & Disassembler
Original patch by Chris Wailes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87265f9792
commit
43b255884a
@ -146,6 +146,42 @@ static inline LLVMBool LLVMInitializeNativeTarget(void) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 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
|
||||||
|
LLVM_NATIVE_ASMPARSER();
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 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
|
||||||
|
LLVM_NATIVE_ASMPRINTER();
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 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
|
||||||
|
LLVM_NATIVE_DISASSEMBLER();
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/*===-- Target Data -------------------------------------------------------===*/
|
/*===-- Target Data -------------------------------------------------------===*/
|
||||||
|
|
||||||
/** Creates target data from a target layout string.
|
/** Creates target data from a target layout string.
|
||||||
|
Loading…
Reference in New Issue
Block a user