mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Apparently "sparc" is a macro on sparcs. Ugh. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a5500e2f6
commit
de3209bfdb
@ -15,19 +15,19 @@
|
||||
#include "llvm/PassManager.h"
|
||||
|
||||
namespace {
|
||||
enum ArchName { nojit, x86, sparc };
|
||||
enum ArchName { nojit, x86, Sparc };
|
||||
|
||||
cl::opt<ArchName>
|
||||
Arch("march", cl::desc("Architecture to JIT to:"), cl::Prefix,
|
||||
cl::values(clEnumVal(x86, " IA-32 (pentium and above)"),
|
||||
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||
clEnumVal(sparc, " Sparc-V9"),
|
||||
clEnumValN(Sparc, "sparc", " Sparc-V9"),
|
||||
#endif
|
||||
0),
|
||||
#if defined(i386) || defined(__i386__) || defined(__x86__)
|
||||
cl::init(x86)
|
||||
#elif defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||
cl::init(sparc)
|
||||
cl::init(Sparc)
|
||||
#else
|
||||
cl::init(nojit)
|
||||
#endif
|
||||
@ -49,7 +49,7 @@ ExecutionEngine *ExecutionEngine::createJIT(Module *M, unsigned Config) {
|
||||
TargetMachineAllocator = allocateX86TargetMachine;
|
||||
break;
|
||||
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||
case sparc:
|
||||
case Sparc:
|
||||
TargetMachineAllocator = allocateSparcTargetMachine;
|
||||
break;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user