aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
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.cpp
parent84117119ffd823834afc96a6ec5262ed698fc935 (diff)
downloadllvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.zip
llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.tar.gz
llvm-109ff296c8c45e0fb74fefe34068dbacf65d7e51.tar.bz2
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.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetObjectFile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
index 091a3b3..f967b4d 100644
--- a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
@@ -36,4 +36,10 @@ void ARMElfTargetObjectFile::Initialize(MCContext &Ctx,
MCSectionELF::SHF_ALLOC,
SectionKind::getDataRel());
}
+
+ AttributesSection =
+ getContext().getELFSection(".ARM.attributes",
+ MCSectionELF::SHT_ARM_ATTRIBUTES,
+ 0,
+ SectionKind::getMetadata());
}