[PATCH] D35706: [ELF] Remove processNonSectionCommands

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 18:03:11 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL308706: [ELF] Remove processNonSectionCommands (authored by phosek).

Changed prior to commit:
  https://reviews.llvm.org/D35706?vs=107604&id=107618#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35706

Files:
  lld/trunk/ELF/LinkerScript.cpp
  lld/trunk/ELF/LinkerScript.h


Index: lld/trunk/ELF/LinkerScript.cpp
===================================================================
--- lld/trunk/ELF/LinkerScript.cpp
+++ lld/trunk/ELF/LinkerScript.cpp
@@ -790,15 +790,6 @@
   removeEmptyCommands();
 }
 
-void LinkerScript::processNonSectionCommands() {
-  for (BaseCommand *Base : Opt.Commands) {
-    if (auto *Cmd = dyn_cast<SymbolAssignment>(Base))
-      assignSymbol(Cmd, false);
-    else if (auto *Cmd = dyn_cast<AssertCommand>(Base))
-      Cmd->Expression();
-  }
-}
-
 void LinkerScript::allocateHeaders(std::vector<PhdrEntry> &Phdrs) {
   uint64_t Min = std::numeric_limits<uint64_t>::max();
   for (OutputSectionCommand *Cmd : OutputSectionCommands) {
Index: lld/trunk/ELF/LinkerScript.h
===================================================================
--- lld/trunk/ELF/LinkerScript.h
+++ lld/trunk/ELF/LinkerScript.h
@@ -288,7 +288,6 @@
 
   bool shouldKeep(InputSectionBase *S);
   void assignOffsets(OutputSectionCommand *Cmd);
-  void processNonSectionCommands();
   void assignAddresses();
   void allocateHeaders(std::vector<PhdrEntry> &Phdrs);
   void addSymbol(SymbolAssignment *Cmd);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35706.107618.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170721/9c8987cd/attachment.bin>


More information about the llvm-commits mailing list