[lld] r279059 - [ELF] - Inline defineSymbolVersion(). NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 18 05:53:58 PDT 2016
Author: grimar
Date: Thu Aug 18 07:53:57 2016
New Revision: 279059
URL: http://llvm.org/viewvc/llvm-project?rev=279059&view=rev
Log:
[ELF] - Inline defineSymbolVersion(). NFC.
Modified:
lld/trunk/ELF/SymbolListFile.cpp
lld/trunk/ELF/SymbolListFile.h
Modified: lld/trunk/ELF/SymbolListFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolListFile.cpp?rev=279059&r1=279058&r2=279059&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolListFile.cpp (original)
+++ lld/trunk/ELF/SymbolListFile.cpp Thu Aug 18 07:53:57 2016
@@ -79,16 +79,11 @@ private:
};
} // end anonymous namespace
-size_t elf::defineSymbolVersion(StringRef VerStr) {
+void VersionScriptParser::parseVersion(StringRef VerStr) {
// Identifiers start at 2 because 0 and 1 are reserved
// for VER_NDX_LOCAL and VER_NDX_GLOBAL constants.
size_t VersionId = Config->VersionDefinitions.size() + 2;
Config->VersionDefinitions.push_back({VerStr, VersionId});
- return VersionId;
-}
-
-void VersionScriptParser::parseVersion(StringRef VerStr) {
- defineSymbolVersion(VerStr);
if (skip("global:") || peek() != "local:")
parseGlobal(VerStr);
Modified: lld/trunk/ELF/SymbolListFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolListFile.h?rev=279059&r1=279058&r2=279059&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolListFile.h (original)
+++ lld/trunk/ELF/SymbolListFile.h Thu Aug 18 07:53:57 2016
@@ -16,8 +16,6 @@
namespace lld {
namespace elf {
-size_t defineSymbolVersion(StringRef Version);
-
void parseDynamicList(MemoryBufferRef MB);
void parseVersionScript(MemoryBufferRef MB);
More information about the llvm-commits
mailing list