[llvm] r362841 - [llvm-lipo] Drop unneeded braces. NFC
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 13:52:17 PDT 2019
Author: smeenai
Date: Fri Jun 7 13:52:17 2019
New Revision: 362841
URL: http://llvm.org/viewvc/llvm-project?rev=362841&view=rev
Log:
[llvm-lipo] Drop unneeded braces. NFC
Modified:
llvm/trunk/tools/llvm-lipo/llvm-lipo.cpp
Modified: llvm/trunk/tools/llvm-lipo/llvm-lipo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-lipo/llvm-lipo.cpp?rev=362841&r1=362840&r2=362841&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-lipo/llvm-lipo.cpp (original)
+++ llvm/trunk/tools/llvm-lipo/llvm-lipo.cpp Fri Jun 7 13:52:17 2019
@@ -207,12 +207,11 @@ static void printArchOrUnknown(const Mac
// Prints trailing space and unknown in this format for compatibility with
// cctools lipo.
const std::string ObjectArch = ObjectFile->getArchTriple().getArchName();
- if (ObjectArch.empty()) {
+ if (ObjectArch.empty())
outs() << "unknown(" << ObjectFile->getHeader().cputype << ","
<< ObjectFile->getHeader().cpusubtype << ") ";
- } else {
+ else
outs() << ObjectArch + " ";
- }
}
LLVM_ATTRIBUTE_NORETURN
More information about the llvm-commits
mailing list