1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

only print the override triple if it exists!

llvm-svn: 80534
This commit is contained in:
Chris Lattner 2009-08-31 03:22:35 +00:00
parent 5eec095b87
commit 2081eaa21d

View File

@ -103,9 +103,10 @@ int main(int argc, char **argv) {
LLVMContext& Context = getGlobalContext();
// If we have an override, set it and then track the triple we want Modules
// to use.
if (!OverrideTriple.empty())
if (!OverrideTriple.empty()) {
TargetTriple.setTriple(OverrideTriple);
outs() << "override triple is " << OverrideTriple << '\n';
outs() << "Override triple set to '" << OverrideTriple << "'\n";
}
BugDriver D(argv[0], AsChild, FindBugs, TimeoutValue, MemoryLimit, Context);
if (D.addSources(InputFilenames)) return 1;