diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-16 18:50:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-16 18:50:48 +0000 |
commit | af89fa609bce1004c9ea9737d9fdb32f4224ef1c (patch) | |
tree | a7e1d57530712f4f34717abcb53dd425a4d5b0e9 /lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | fb9d0dce976452f878e5bfd768f1ba35b182c33d (diff) |
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
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp index f7a9560cda..b909b5b39e 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -14,24 +14,10 @@ #include "PPCSubtarget.h" #include "PPC.h" #include "llvm/Module.h" -#include "llvm/Support/CommandLine.h" #include "PPCGenSubtarget.inc" #include <iostream> - using namespace llvm; -PPCTargetEnum llvm::PPCTarget = TargetDefault; -namespace llvm { - cl::opt<PPCTargetEnum, true> - PPCTargetArg(cl::desc("Force generation of code for a specific PPC target:"), - cl::values( - clEnumValN(TargetAIX, "aix", " Enable AIX codegen"), - clEnumValN(TargetDarwin,"darwin", - " Enable Darwin codegen"), - clEnumValEnd), - cl::location(PPCTarget), cl::init(TargetDefault)); -} - #if defined(__APPLE__) #include <mach/mach.h> #include <mach/mach_host.h> @@ -115,7 +101,9 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS, bool is64Bit) // if one cannot be determined, to true. const std::string& TT = M.getTargetTriple(); if (TT.length() > 5) { - IsDarwin = TT.find("darwin") != std::string::npos; + IsDarwin = TT.find("-darwin") != std::string::npos; + if (!IsDarwin) + IsAIX = TT.find("-aix") != std::string::npos; } else if (TT.empty()) { #if defined(_POWER) IsAIX = true; |