diff options
| -rw-r--r-- | llvm/tools/llvm-lipo/llvm-lipo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-lipo/llvm-lipo.cpp b/llvm/tools/llvm-lipo/llvm-lipo.cpp index 3cd3ad53a6f..0dcbf1d1abf 100644 --- a/llvm/tools/llvm-lipo/llvm-lipo.cpp +++ b/llvm/tools/llvm-lipo/llvm-lipo.cpp @@ -207,12 +207,11 @@ static void printArchOrUnknown(const MachOObjectFile *ObjectFile) { // 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 |

