This lets us remove a use of IRObjectFile::getModule() in llvm-nm.
Depends on D27073
LGTM.
llvm/tools/llvm-nm/llvm-nm.cpp | ||
---|---|---|
273 ↗ | (On Diff #79166) | A bit more concise: auto TripleStr = IRobj->getTargetTriple() if (TripleStr.empty) return false; return Triple(TripleStr).isArch64Bit(); Or even: auto TripleStr = IRobj->getTargetTriple() return !TripleStr.empty() && Triple(TripleStr).isArch64Bit(); |
llvm/tools/llvm-nm/llvm-nm.cpp | ||
---|---|---|
273 ↗ | (On Diff #79166) | In fact we don't need to test TripleStr for emptiness because isArch64Bit will return false given an empty triple. So I committed an even shorter version. |