summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-22 00:41:56 +0000
committerChris Lattner <sabre@nondot.org>2009-07-22 00:41:56 +0000
commit8ebaec6b27569c2916191edf2bd0d88e419f070e (patch)
tree7e6f1ab9bb9989d744f244eba6aef3e9dcf7d83f /llvm/lib
parentfab2059d0eb05ba4833c4539046f6ab776c77fc7 (diff)
downloadbcm5719-llvm-8ebaec6b27569c2916191edf2bd0d88e419f070e.tar.gz
bcm5719-llvm-8ebaec6b27569c2916191edf2bd0d88e419f070e.zip
set the ELF "small" flag on objects that end up in .rodata.cst4 consistently,
updating a mips testcase to expect it. llvm-svn: 76707
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ELFTargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index e33ae423ac1..fe006a3c607 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp
@@ -157,7 +157,8 @@ ELFTargetAsmInfo::getSectionForMergableConstant(uint64_t Size,
if (SecName)
return getNamedSection(SecName,
- SectionFlags::setEntitySize(SectionFlags::Mergeable,
+ SectionFlags::setEntitySize(SectionFlags::Mergeable|
+ SectionFlags::Small,
Size));
return getReadOnlySection(); // .rodata
OpenPOWER on IntegriCloud