git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357166
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!dot_gnu_version_sec) {
// No version table.
IsDefault = false;
- return StringRef("");
+ return "";
}
// Determine the position in the symbol table of this entry.
if (VersionIndex == VER_NDX_LOCAL ||
VersionIndex == VER_NDX_GLOBAL) {
IsDefault = false;
- return StringRef("");
+ return "";
}
// Lookup this symbol in the version table.
}
if (NameOffset >= StrTab.size())
reportError("Invalid string offset");
- return StringRef(StrTab.data() + NameOffset);
+ return StrTab.data() + NameOffset;
}
template <typename ELFT>