[lld] r305412 - Remove lld toStringRef function.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 13:20:12 PDT 2017
Author: zturner
Date: Wed Jun 14 15:20:11 2017
New Revision: 305412
URL: http://llvm.org/viewvc/llvm-project?rev=305412&view=rev
Log:
Remove lld toStringRef function.
I added the same function in llvm, so this is causing an
ambiguous symbol.
Modified:
lld/trunk/ELF/Strings.h
Modified: lld/trunk/ELF/Strings.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Strings.h?rev=305412&r1=305411&r2=305412&view=diff
==============================================================================
--- lld/trunk/ELF/Strings.h (original)
+++ lld/trunk/ELF/Strings.h Wed Jun 14 15:20:11 2017
@@ -73,10 +73,6 @@ private:
// name, it returns Optional::None.
llvm::Optional<std::string> demangle(StringRef Name);
-inline StringRef toStringRef(ArrayRef<uint8_t> Arr) {
- return {(const char *)Arr.data(), Arr.size()};
-}
-
inline ArrayRef<uint8_t> toArrayRef(StringRef S) {
return {(const uint8_t *)S.data(), S.size()};
}
More information about the llvm-commits
mailing list