diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-01-23 01:49:37 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-01-23 01:49:37 +0000 |
commit | f1c5a0f09cb1444e43cf605b0a22aeac39cd6f85 (patch) | |
tree | bc646476755bf78838cee664f3e0246c032e8291 /lld/ELF/Writer.cpp | |
parent | 6dcb8149a5c50059a97ecccbb6cfd0a25839a8c1 (diff) | |
download | bcm5719-llvm-f1c5a0f09cb1444e43cf605b0a22aeac39cd6f85.tar.gz bcm5719-llvm-f1c5a0f09cb1444e43cf605b0a22aeac39cd6f85.zip |
[ELF] Avoid unnecessary global variable.
Summary: It looks like this snuck through in r256143/D15383.
Reviewers: ruiu, grimar
Differential Revision: http://reviews.llvm.org/D16500
llvm-svn: 258599
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 6828b11cf74..622ca047e5a 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -95,6 +95,10 @@ private: uintX_t SectionHeaderOff; llvm::StringMap<llvm::StringRef> InputToOutputSection; + + // Flag to force GOT to be in output if we have relocations + // that relies on its address. + bool HasGotOffRel = false; }; } // anonymous namespace |