summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ELFTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-07-22 17:09:41 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-07-22 17:09:41 +0000
commit4a4484ee9745ba48f24991282db2927f37037870 (patch)
treeef642a07afa596031f44aad480b57fd6fbd28f19 /llvm/lib/Target/ELFTargetAsmInfo.cpp
parent85b898e1de64f1c0ba1459470d15dced3859fa4c (diff)
downloadbcm5719-llvm-4a4484ee9745ba48f24991282db2927f37037870.tar.gz
bcm5719-llvm-4a4484ee9745ba48f24991282db2927f37037870.zip
Tie small stuff to non-small by default on ELF platforms
llvm-svn: 53919
Diffstat (limited to 'llvm/lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/ELFTargetAsmInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index eb3608dcaa5..6ce01a836b4 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp
@@ -63,11 +63,14 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
} else {
switch (Kind) {
case SectionKind::Data:
+ case SectionKind::SmallData:
return getDataSection_();
case SectionKind::BSS:
+ case SectionKind::SmallBSS:
// ELF targets usually have BSS sections
return getBSSSection_();
case SectionKind::ROData:
+ case SectionKind::SmallROData:
return getReadOnlySection_();
case SectionKind::RODataMergeStr:
return MergeableStringSection(GVar);
@@ -147,6 +150,8 @@ std::string ELFTargetAsmInfo::PrintSectionFlags(unsigned flags) const {
Flags += 'S';
if (flags & SectionFlags::TLS)
Flags += 'T';
+ if (flags & SectionFlags::Small)
+ Flags += 's';
Flags += "\"";
OpenPOWER on IntegriCloud