only print the override triple if it exists!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-08-31 03:22:35 +00:00
parent b374b90e81
commit 306110845a

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;