diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-08 21:34:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-08 21:34:17 +0000 |
commit | 287df1bc0309962770b6c176f2d143795dd3cc2f (patch) | |
tree | 6dbc0eeb34446d96ae16a602e69fea256fc7d32d /lib/Target/ARM/ARMTargetObjectFile.cpp | |
parent | 74aae4726a66733c5872588287535a984f9a94c7 (diff) | |
download | external_llvm-287df1bc0309962770b6c176f2d143795dd3cc2f.zip external_llvm-287df1bc0309962770b6c176f2d143795dd3cc2f.tar.gz external_llvm-287df1bc0309962770b6c176f2d143795dd3cc2f.tar.bz2 |
delete a forwarding function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetObjectFile.cpp')
-rw-r--r-- | lib/Target/ARM/ARMTargetObjectFile.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMTargetObjectFile.cpp b/lib/Target/ARM/ARMTargetObjectFile.cpp index 680d032..091a3b3 100644 --- a/lib/Target/ARM/ARMTargetObjectFile.cpp +++ b/lib/Target/ARM/ARMTargetObjectFile.cpp @@ -9,6 +9,7 @@ #include "ARMTargetObjectFile.h" #include "ARMSubtarget.h" +#include "llvm/MC/MCContext.h" #include "llvm/MC/MCSectionELF.h" #include "llvm/Support/Dwarf.h" #include "llvm/Target/TargetMachine.h" @@ -25,12 +26,14 @@ void ARMElfTargetObjectFile::Initialize(MCContext &Ctx, if (TM.getSubtarget<ARMSubtarget>().isAAPCS_ABI()) { StaticCtorSection = - getELFSection(".init_array", MCSectionELF::SHT_INIT_ARRAY, - MCSectionELF::SHF_WRITE | MCSectionELF::SHF_ALLOC, - SectionKind::getDataRel()); + getContext().getELFSection(".init_array", MCSectionELF::SHT_INIT_ARRAY, + MCSectionELF::SHF_WRITE | + MCSectionELF::SHF_ALLOC, + SectionKind::getDataRel()); StaticDtorSection = - getELFSection(".fini_array", MCSectionELF::SHT_FINI_ARRAY, - MCSectionELF::SHF_WRITE | MCSectionELF::SHF_ALLOC, - SectionKind::getDataRel()); + getContext().getELFSection(".fini_array", MCSectionELF::SHT_FINI_ARRAY, + MCSectionELF::SHF_WRITE | + MCSectionELF::SHF_ALLOC, + SectionKind::getDataRel()); } } |