summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-19 21:14:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-19 21:14:45 +0000
commit2b9b0e3748def043c0e4b1bc62e61a48133d4dd4 (patch)
tree819eb53ddd91cff1fbb4baf65d8303134dce7d39 /llvm/tools/bugpoint
parent163a0966a92bb989b1d91c59be5943a4f2988cf7 (diff)
downloadbcm5719-llvm-2b9b0e3748def043c0e4b1bc62e61a48133d4dd4.tar.gz
bcm5719-llvm-2b9b0e3748def043c0e4b1bc62e61a48133d4dd4.zip
ADT/Triple: Move a variety of clients to using isOSDarwin() and isOSWindows()
predicates. llvm-svn: 129816
Diffstat (limited to 'llvm/tools/bugpoint')
-rw-r--r--llvm/tools/bugpoint/ToolRunner.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp
index 1719703b57c..6c46ef18eb6 100644
--- a/llvm/tools/bugpoint/ToolRunner.cpp
+++ b/llvm/tools/bugpoint/ToolRunner.cpp
@@ -758,8 +758,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
// For ARM architectures we don't want this flag. bugpoint isn't
// explicitly told what architecture it is working on, so we get
// it from gcc flags
- if ((TargetTriple.getOS() == Triple::Darwin) &&
- !IsARMArchitecture(GCCArgs))
+ if (TargetTriple.isOSDarwin() && !IsARMArchitecture(GCCArgs))
GCCArgs.push_back("-force_cpusubtype_ALL");
}
}
@@ -900,7 +899,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
GCCArgs.push_back("none");
if (TargetTriple.getArch() == Triple::sparc)
GCCArgs.push_back("-G"); // Compile a shared library, `-G' for Sparc
- else if (TargetTriple.getOS() == Triple::Darwin) {
+ else if (TargetTriple.isOSDarwin()) {
// link all source files into a single module in data segment, rather than
// generating blocks. dynamic_lookup requires that you set
// MACOSX_DEPLOYMENT_TARGET=10.3 in your env. FIXME: it would be better for
OpenPOWER on IntegriCloud