diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2012-01-25 22:24:19 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2012-01-25 22:24:19 +0000 |
commit | 7722a2d4e33da6f5b0569241328a26ba78c2836b (patch) | |
tree | 55d3f9476812c0592a8ae2f944409874181f0922 /llvm/lib/Target/ARM/ARMTargetObjectFile.h | |
parent | f7f102f81a6516ea0e47370959a388eaa5f16c3c (diff) | |
download | bcm5719-llvm-7722a2d4e33da6f5b0569241328a26ba78c2836b.tar.gz bcm5719-llvm-7722a2d4e33da6f5b0569241328a26ba78c2836b.zip |
Properly emit ctors / dtors with priorities into desired sections
and let linker handle the rest.
This finally fixes PR5329
llvm-svn: 148990
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetObjectFile.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetObjectFile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.h b/llvm/lib/Target/ARM/ARMTargetObjectFile.h index c6a7261439d..ff210604148 100644 --- a/llvm/lib/Target/ARM/ARMTargetObjectFile.h +++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.h @@ -20,6 +20,7 @@ class TargetMachine; class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { protected: const MCSection *AttributesSection; + bool isAAPCS_ABI; public: ARMElfTargetObjectFile() : TargetLoweringObjectFileELF(), @@ -31,6 +32,9 @@ public: virtual const MCSection *getAttributesSection() const { return AttributesSection; } + + const MCSection * getStaticCtorSection(unsigned Priority) const; + const MCSection * getStaticDtorSection(unsigned Priority) const; }; } // end namespace llvm |