[lld] r315416 - Make LinkerScript::addSymbol a private member function.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 19:28:39 PDT 2017


Author: ruiu
Date: Tue Oct 10 19:28:39 2017
New Revision: 315416

URL: http://llvm.org/viewvc/llvm-project?rev=315416&view=rev
Log:
Make LinkerScript::addSymbol a private member function.

Modified:
    lld/trunk/ELF/LinkerScript.h

Modified: lld/trunk/ELF/LinkerScript.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.h?rev=315416&r1=315415&r2=315416&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.h (original)
+++ lld/trunk/ELF/LinkerScript.h Tue Oct 10 19:28:39 2017
@@ -200,6 +200,7 @@ class LinkerScript final {
 
   llvm::DenseMap<StringRef, OutputSection *> NameToOutputSection;
 
+  void addSymbol(SymbolAssignment *Cmd);
   void assignSymbol(SymbolAssignment *Cmd, bool InSec);
   void setDot(Expr E, const Twine &Loc, bool InSec);
 
@@ -223,7 +224,6 @@ class LinkerScript final {
   uint64_t Dot;
 
 public:
-  bool ErrorOnMissingSection = false;
   OutputSection *createOutputSection(StringRef Name, StringRef Location);
   OutputSection *getOrCreateOutputSection(StringRef Name);
 
@@ -246,7 +246,6 @@ public:
   void assignOffsets(OutputSection *Sec);
   void assignAddresses();
   void allocateHeaders(std::vector<PhdrEntry *> &Phdrs);
-  void addSymbol(SymbolAssignment *Cmd);
   void processSectionCommands(OutputSectionFactory &Factory);
 
   // SECTIONS command list.
@@ -256,6 +255,7 @@ public:
   std::vector<PhdrsCommand> PhdrsCommands;
 
   bool HasSectionsCommand = false;
+  bool ErrorOnMissingSection = false;
 
   // List of section patterns specified with KEEP commands. They will
   // be kept even if they are unused and --gc-sections is specified.




More information about the llvm-commits mailing list