diff options
Diffstat (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp')
-rw-r--r-- | llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp index 9355d38..a5c664c 100644 --- a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp +++ b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp @@ -360,8 +360,9 @@ private: auto *O = dyn_cast<MachOObjectFile>(ObjOrErr->get()); uint32_t FileCPUType, FileCPUSubtype; + StringRef ArchName = O->getArchTriple().getArchName(); std::tie(FileCPUType, FileCPUSubtype) = MachO::getCPUTypeFromArchitecture( - MachO::getArchitectureFromName(O->getArchTriple().getArchName())); + MachO::getArchitectureFromName(ArchName)); // If -arch_only is specified then skip this file if it doesn't match // the architecture specified. @@ -370,7 +371,9 @@ private: } if (!NoWarningForNoSymbols && O->symbols().empty()) - WithColor::warning() << Member.MemberName + " has no symbols\n"; + WithColor::warning() << "'" + Member.MemberName + + "': has no symbols for architecture " + + ArchName + "\n"; uint64_t FileCPUID = getCPUID(FileCPUType, FileCPUSubtype); Builder.Data.MembersPerArchitecture[FileCPUID].push_back( |