forked from OSchip/llvm-project
[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
This commit is contained in:
parent
6dcb8149a5
commit
f1c5a0f09c
|
@ -23,8 +23,6 @@ using namespace llvm::ELF;
|
|||
using namespace lld;
|
||||
using namespace lld::elf2;
|
||||
|
||||
bool elf2::HasGotOffRel = false;
|
||||
|
||||
template <class ELFT>
|
||||
OutputSectionBase<ELFT>::OutputSectionBase(StringRef Name, uint32_t Type,
|
||||
uintX_t Flags)
|
||||
|
|
|
@ -36,10 +36,6 @@ template <class ELFT> class OutputSection;
|
|||
template <class ELFT> class ObjectFile;
|
||||
template <class ELFT> class DefinedRegular;
|
||||
|
||||
// Flag to force GOT to be in output if we have relocations
|
||||
// that relies on its address.
|
||||
extern bool HasGotOffRel;
|
||||
|
||||
template <class ELFT>
|
||||
static inline typename llvm::object::ELFFile<ELFT>::uintX_t
|
||||
getAddend(const typename llvm::object::ELFFile<ELFT>::Elf_Rel &Rel) {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue