mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
llvm-nm: Fix warning.
llvm-svn: 123901
This commit is contained in:
parent
c3f075e648
commit
7bcf23aa12
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user