Skip to content
Snippets Groups Projects
Commit 05350e6d authored by Michael J. Spencer's avatar Michael J. Spencer
Browse files

llvm-nm: Fix warning.

llvm-svn: 123901
parent 7c812f5a
No related branches found
No related tags found
No related merge requests found
......@@ -76,10 +76,10 @@ namespace {
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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment