mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Remove the -darwin and -aix llc options, inferring darwinism and aixism from
the target triple & subtarget info. woo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -91,10 +91,6 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
|
||||
FrameInfo(*this, false), JITInfo(*this), TLInfo(*this),
|
||||
InstrItins(Subtarget.getInstrItineraryData()) {
|
||||
|
||||
if (TargetDefault == PPCTarget) {
|
||||
if (Subtarget.isAIX()) PPCTarget = TargetAIX;
|
||||
if (Subtarget.isDarwin()) PPCTarget = TargetDarwin;
|
||||
}
|
||||
if (getRelocationModel() == Reloc::Default)
|
||||
if (Subtarget.isDarwin())
|
||||
setRelocationModel(Reloc::DynamicNoPIC);
|
||||
@ -153,15 +149,10 @@ bool PPCTargetMachine::addPassesToEmitFile(PassManager &PM,
|
||||
|
||||
// Decide which asm printer to use. If the user has not specified one on
|
||||
// the command line, choose whichever one matches the default (current host).
|
||||
switch (PPCTarget) {
|
||||
case TargetAIX:
|
||||
if (Subtarget.isAIX())
|
||||
PM.add(createAIXAsmPrinter(Out, *this));
|
||||
break;
|
||||
case TargetDefault:
|
||||
case TargetDarwin:
|
||||
else
|
||||
PM.add(createDarwinAsmPrinter(Out, *this));
|
||||
break;
|
||||
}
|
||||
|
||||
PM.add(createMachineCodeDeleter());
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user