[ELF] - Inline defineSymbolVersion(). NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 18 Aug 2016 12:53:57 +0000 (12:53 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 18 Aug 2016 12:53:57 +0000 (12:53 +0000)
llvm-svn: 279059

lld/ELF/SymbolListFile.cpp
lld/ELF/SymbolListFile.h

index c54f509..18bad07 100644 (file)
@@ -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);
index cf3c4c6..60362a8 100644 (file)
@@ -16,8 +16,6 @@
 namespace lld {
 namespace elf {
 
-size_t defineSymbolVersion(StringRef Version);
-
 void parseDynamicList(MemoryBufferRef MB);
 void parseVersionScript(MemoryBufferRef MB);