mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
build: Add LLVM_NATIVE_ARCHNAME, which has the sensible value, without "Target"
appended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -30,13 +30,6 @@ extern "C" {
|
||||
#define LLVM_ASM_PRINTER(TargetName) void LLVMInitialize##TargetName##AsmPrinter();
|
||||
#include "llvm/Config/AsmPrinters.def"
|
||||
|
||||
// FIXME: Workaround for unfortunate definition of LLVM_NATIVE_ARCH.
|
||||
#define LLVM_ASM_PRINTER(TargetName) \
|
||||
static inline void LLVMInitialize##TargetName##TargetAsmPrinter() { \
|
||||
LLVMInitialize##TargetName##AsmPrinter(); \
|
||||
}
|
||||
#include "llvm/Config/AsmPrinters.def"
|
||||
|
||||
// Declare all of the available assembly parser initialization functions.
|
||||
#define LLVM_ASM_PARSER(TargetName) void LLVMInitialize##TargetName##AsmParser();
|
||||
#include "llvm/Config/AsmParsers.def"
|
||||
@@ -107,7 +100,7 @@ namespace llvm {
|
||||
/// It is legal for a client to make multiple calls to this function.
|
||||
inline bool InitializeNativeTarget() {
|
||||
// If we have a native target, initialize it to ensure it is linked in.
|
||||
#ifdef LLVM_NATIVE_ARCH
|
||||
#ifdef LLVM_NATIVE_ARCHNAME
|
||||
#define DoInit2(TARG) \
|
||||
LLVMInitialize ## TARG ## Info (); \
|
||||
LLVMInitialize ## TARG ()
|
||||
@@ -129,7 +122,7 @@ namespace llvm {
|
||||
#define DoInit2(TARG) \
|
||||
LLVMInitialize ## TARG ## AsmPrinter ();
|
||||
#define DoInit(T) DoInit2(T)
|
||||
DoInit(LLVM_NATIVE_ARCH);
|
||||
DoInit(LLVM_NATIVE_ARCHNAME);
|
||||
return false;
|
||||
#undef DoInit
|
||||
#undef DoInit2
|
||||
|
Reference in New Issue
Block a user