diff options
author | Reid Kleckner <rnk@google.com> | 2018-06-12 18:56:05 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-06-12 18:56:05 +0000 |
commit | 98117a47e649be80d5dc4b694c4c7ac6db7e308a (patch) | |
tree | 0bdd074eb9f161c52d80ec4c54a7a61ab483dba1 /llvm/lib/Target/X86/X86TargetObjectFile.h | |
parent | 0a58f9c9537b864da89bbc78977d2f6ceac23e75 (diff) | |
download | bcm5719-llvm-98117a47e649be80d5dc4b694c4c7ac6db7e308a.tar.gz bcm5719-llvm-98117a47e649be80d5dc4b694c4c7ac6db7e308a.zip |
[MS][ARM64] Hoist __ImageBase handling into TargetLoweringObjectFileCOFF
All COFF targets should use @IMGREL32 relocations for symbol differences
against __ImageBase. Do the same for getSectionForConstant, so that
immediates lowered to globals get merged across TUs.
Patch by Chris January
Differential Revision: https://reviews.llvm.org/D47783
llvm-svn: 334523
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetObjectFile.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetObjectFile.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.h b/llvm/lib/Target/X86/X86TargetObjectFile.h index 19078618d62..d045094edb1 100644 --- a/llvm/lib/Target/X86/X86TargetObjectFile.h +++ b/llvm/lib/Target/X86/X86TargetObjectFile.h @@ -71,19 +71,6 @@ namespace llvm { void Initialize(MCContext &Ctx, const TargetMachine &TM) override; }; - /// This implementation is used for Windows targets on x86 and x86-64. - class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF { - const MCExpr * - lowerRelativeReference(const GlobalValue *LHS, const GlobalValue *RHS, - const TargetMachine &TM) const override; - - /// Given a mergeable constant with the specified size and relocation - /// information, return a section that it should be placed in. - MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind, - const Constant *C, - unsigned &Align) const override; - }; - } // end namespace llvm #endif |