[lld] r266816 - Make a function file-scoped.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 13:50:25 PDT 2016


Author: ruiu
Date: Tue Apr 19 15:50:25 2016
New Revision: 266816

URL: http://llvm.org/viewvc/llvm-project?rev=266816&view=rev
Log:
Make a function file-scoped.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=266816&r1=266815&r2=266816&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Apr 19 15:50:25 2016
@@ -138,7 +138,7 @@ static uint64_t parseExpr(uint64_t Lhs,
 }
 
 // Evaluates the expression given by list of tokens.
-uint64_t evaluate(ArrayRef<StringRef> Tokens, uint64_t Dot) {
+static uint64_t evaluate(ArrayRef<StringRef> Tokens, uint64_t Dot) {
   uint64_t V = parsePrimary(Tokens, Dot);
   V = parseExpr(V, 0, Tokens, Dot);
   if (!Tokens.empty())




More information about the llvm-commits mailing list