summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ELFWriter.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-06-25 07:36:24 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-06-25 07:36:24 +0000
commita5e0abd0d454ffdb22f8647f4319b178901b08be (patch)
tree5a6eb50876c8ca647efe9e5141c7b237262adb76 /lib/CodeGen/ELFWriter.h
parentc9028e69f11246a051c3de1457cd89d46e82ca60 (diff)
downloadexternal_llvm-a5e0abd0d454ffdb22f8647f4319b178901b08be.zip
external_llvm-a5e0abd0d454ffdb22f8647f4319b178901b08be.tar.gz
external_llvm-a5e0abd0d454ffdb22f8647f4319b178901b08be.tar.bz2
Support Constant Pool Sections
Add section symbols to the symbol table git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.h')
-rw-r--r--lib/CodeGen/ELFWriter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/ELFWriter.h b/lib/CodeGen/ELFWriter.h
index 39577d9..e0e71d0 100644
--- a/lib/CodeGen/ELFWriter.h
+++ b/lib/CodeGen/ELFWriter.h
@@ -147,6 +147,12 @@ namespace llvm {
ELFSection::SHF_EXECINSTR | ELFSection::SHF_ALLOC);
}
+ /// Get a constant pool section based on the section name returned by TAI
+ ELFSection &getConstantPoolSection(std::string SName, unsigned Align) {
+ return getSection(SName, ELFSection::SHT_PROGBITS,
+ ELFSection::SHF_MERGE | ELFSection::SHF_ALLOC, Align);
+ }
+
/// Return the relocation section of section 'S'. 'RelA' is true
/// if the relocation section contains entries with addends.
ELFSection &getRelocSection(std::string SName, bool RelA) {