Revert r297850: [ELF] - Linkerscript: make Dot public and remove getDot(). NFC.
This reverts commit r297850 because this change was made
based on a miscommunication.
llvm-svn: 298001
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index 8271537..5b6b09c 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -252,6 +252,7 @@
// "ScriptConfig" is a bit too long, so define a short name for it.
ScriptConfiguration &Opt = *ScriptConfig;
+ uint64_t Dot;
uint64_t ThreadBssOffset = 0;
std::function<uint64_t()> LMAOffset;
@@ -262,10 +263,8 @@
llvm::DenseSet<InputSectionBase *> AlreadyOutputIS;
public:
- uint64_t Dot;
- std::vector<OutputSection *> *OutputSections;
-
bool hasPhdrsCommands() { return !Opt.PhdrsCommands.empty(); }
+ uint64_t getDot() { return Dot; }
OutputSection *getOutputSection(const Twine &Loc, StringRef S);
uint64_t getOutputSectionSize(StringRef S);
void discard(ArrayRef<InputSectionBase *> V);
@@ -275,6 +274,7 @@
virtual bool isAbsolute(StringRef S) = 0;
virtual OutputSection *getSymbolSection(StringRef S) = 0;
+ std::vector<OutputSection *> *OutputSections;
void addOrphanSections(OutputSectionFactory &Factory);
void removeEmptyCommands();
void adjustSectionsBeforeSorting();