mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
llvm-nm: Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db26073c6a
commit
d11699d3c0
@ -76,10 +76,10 @@ namespace {
|
|||||||
static const Target *GetTarget(const ObjectFile *Obj = NULL) {
|
static const Target *GetTarget(const ObjectFile *Obj = NULL) {
|
||||||
// Figure out the target triple.
|
// Figure out the target triple.
|
||||||
llvm::Triple TT("unknown-unknown-unknown");
|
llvm::Triple TT("unknown-unknown-unknown");
|
||||||
if (TripleName.empty())
|
if (TripleName.empty()) {
|
||||||
if (Obj)
|
if (Obj)
|
||||||
TT.setArch(Triple::ArchType(Obj->getArch()));
|
TT.setArch(Triple::ArchType(Obj->getArch()));
|
||||||
else
|
} else
|
||||||
TT.setTriple(Triple::normalize(TripleName));
|
TT.setTriple(Triple::normalize(TripleName));
|
||||||
|
|
||||||
if (!ArchName.empty())
|
if (!ArchName.empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user