Add data.rel stuff

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2009-03-30 15:27:03 +00:00
parent 217b919cf9
commit 71a7c6cde0
6 changed files with 63 additions and 14 deletions

View File

@@ -32,6 +32,11 @@ namespace llvm {
const Section* MergeableStringSection(const GlobalVariable *GV) const;
virtual const Section*
SelectSectionForMachineConst(const Type *Ty) const;
const Section* DataRelSection;
const Section* DataRelLocalSection;
const Section* DataRelROSection;
const Section* DataRelROLocalSection;
};
}

View File

@@ -36,8 +36,12 @@ namespace llvm {
Unknown = 0, ///< Custom section
Text, ///< Text section
Data, ///< Data section
DataRel, ///< Contains data that has relocations
DataRelLocal, ///< Contains data that has only local relocations
BSS, ///< BSS section
ROData, ///< Readonly data section
DataRelRO, ///< Contains data that is otherwise readonly
DataRelROLocal, ///< Contains r/o data with only local relocations
RODataMergeStr, ///< Readonly data section (mergeable strings)
RODataMergeConst, ///< Readonly data section (mergeable constants)
SmallData, ///< Small data section