aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitef5833c140de096c6b9334025a45dca94cba9fc3 (patch)
treed99489261227632b926ebc9cab9f28e5ec9dc425 /lib
parent8cf9af6706c22a797fe67226a87d8ed036ea6c32 (diff)
downloadexternal_llvm-ef5833c140de096c6b9334025a45dca94cba9fc3.zip
external_llvm-ef5833c140de096c6b9334025a45dca94cba9fc3.tar.gz
external_llvm-ef5833c140de096c6b9334025a45dca94cba9fc3.tar.bz2
set the ELF "small" flag on objects that end up in .rodata.cst4 consistently,
updating a mips testcase to expect it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ELFTargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index e33ae42..fe006a3 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/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