From 2a00b8461c4c4bfed589a5a880ad09a2a9ea2b9d Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 15 Nov 2016 17:51:07 +0000 Subject: [PATCH] Rename function to avoid function overloading. We had two functions with the same name to read completely different things. That was confusing. llvm-svn: 286991 --- lld/ELF/LinkerScript.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index a202dc5..1f65c37 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -986,7 +986,7 @@ private: Expr readParenExpr(); // For parsing version script. - void readExtern(std::vector *Globals); + void readVersionExtern(std::vector *Globals); void readVersionDeclaration(StringRef VerStr); void readGlobal(StringRef VerStr); void readLocal(StringRef VerStr); @@ -1824,7 +1824,7 @@ void ScriptParser::readLocal(StringRef VerStr) { } } -void ScriptParser::readExtern(std::vector *Globals) { +void ScriptParser::readVersionExtern(std::vector *Globals) { expect("\"C++\""); expect("{"); @@ -1849,7 +1849,7 @@ void ScriptParser::readGlobal(StringRef VerStr) { for (;;) { if (consume("extern")) - readExtern(Globals); + readVersionExtern(Globals); StringRef Cur = peek(); if (Cur == "}" || Cur == "local:" || Error) -- 2.7.4