[lld] r291224 - Unbreak Darwin buildbots.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 02:15:48 PST 2017
Author: ruiu
Date: Fri Jan 6 04:15:47 2017
New Revision: 291224
URL: http://llvm.org/viewvc/llvm-project?rev=291224&view=rev
Log:
Unbreak Darwin buildbots.
Modified:
lld/trunk/COFF/Symbols.cpp
Modified: lld/trunk/COFF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Symbols.cpp?rev=291224&r1=291223&r2=291224&view=diff
==============================================================================
--- lld/trunk/COFF/Symbols.cpp (original)
+++ lld/trunk/COFF/Symbols.cpp Fri Jan 6 04:15:47 2017
@@ -19,6 +19,13 @@
using namespace llvm;
using namespace llvm::object;
+// Returns a symbol name for an error message.
+std::string lld::toString(coff::SymbolBody &B) {
+ if (Optional<std::string> S = coff::demangle(B.getName()))
+ return ("\"" + *S + "\" (" + B.getName() + ")").str();
+ return B.getName();
+}
+
namespace lld {
namespace coff {
@@ -74,11 +81,4 @@ Defined *Undefined::getWeakAlias() {
return nullptr;
}
} // namespace coff
-
-// Returns a symbol name for an error message.
-std::string lld::toString(coff::SymbolBody &B) {
- if (Optional<std::string> S = coff::demangle(B.getName()))
- return ("\"" + *S + "\" (" + B.getName() + ")").str();
- return B.getName();
-}
} // namespace lld
More information about the llvm-commits
mailing list