summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMTargetObjectFile.h
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2010-10-11 23:01:44 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2010-10-11 23:01:44 +0000
commit109ff296c8c45e0fb74fefe34068dbacf65d7e51 (patch)
treedcee37474266fd26993b38382f86d03393ed96c6 /llvm/lib/Target/ARM/ARMTargetObjectFile.h
parent84117119ffd823834afc96a6ec5262ed698fc935 (diff)
downloadbcm5719-llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.tar.gz
bcm5719-llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.zip
Second set of ARM/MC/ELF changes.
Added ARM specific ELF section types. Added AttributesSection to ARMElfTargetObject First step in unifying .cpu assembly tag with ELF/.o llc now asserts on actual ELF emission on -filetype=obj :-) llvm-svn: 116257
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetObjectFile.h')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetObjectFile.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.h b/llvm/lib/Target/ARM/ARMTargetObjectFile.h
index 097fc2cceba..c6a7261439d 100644
--- a/llvm/lib/Target/ARM/ARMTargetObjectFile.h
+++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.h
@@ -18,10 +18,19 @@ class MCContext;
class TargetMachine;
class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
+protected:
+ const MCSection *AttributesSection;
public:
- ARMElfTargetObjectFile() : TargetLoweringObjectFileELF() {}
+ ARMElfTargetObjectFile() :
+ TargetLoweringObjectFileELF(),
+ AttributesSection(NULL)
+ {}
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
+
+ virtual const MCSection *getAttributesSection() const {
+ return AttributesSection;
+ }
};
} // end namespace llvm
OpenPOWER on IntegriCloud