[llvm-commits] [llvm] r123901 - /llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Wed Jan 19 23:22:05 PST 2011
Author: mspencer
Date: Thu Jan 20 01:22:04 2011
New Revision: 123901
URL: http://llvm.org/viewvc/llvm-project?rev=123901&view=rev
Log:
llvm-nm: Fix warning.
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=123901&r1=123900&r2=123901&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Thu Jan 20 01:22:04 2011
@@ -76,10 +76,10 @@
static const Target *GetTarget(const ObjectFile *Obj = NULL) {
// Figure out the target triple.
llvm::Triple TT("unknown-unknown-unknown");
- if (TripleName.empty())
+ if (TripleName.empty()) {
if (Obj)
TT.setArch(Triple::ArchType(Obj->getArch()));
- else
+ } else
TT.setTriple(Triple::normalize(TripleName));
if (!ArchName.empty())
More information about the llvm-commits
mailing list