summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-16 18:50:48 +0000
committerChris Lattner <sabre@nondot.org>2006-06-16 18:50:48 +0000
commita7d9db2fa5af15dba650e1b4bb8b03e56e60a6f6 (patch)
tree11f7ea99247dc68a215de17d2d0616daffc176a4 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
parent8a417a2fde00f7a8546909faaac32b70d3437ca5 (diff)
downloadbcm5719-llvm-a7d9db2fa5af15dba650e1b4bb8b03e56e60a6f6.tar.gz
bcm5719-llvm-a7d9db2fa5af15dba650e1b4bb8b03e56e60a6f6.zip
Remove the -darwin and -aix llc options, inferring darwinism and aixism from
the target triple & subtarget info. woo. llvm-svn: 28835
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index 78ea48197e8..e5ee33be3f2 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -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;
OpenPOWER on IntegriCloud