diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-22 00:41:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-22 00:41:56 +0000 |
commit | ef5833c140de096c6b9334025a45dca94cba9fc3 (patch) | |
tree | d99489261227632b926ebc9cab9f28e5ec9dc425 /lib | |
parent | 8cf9af6706c22a797fe67226a87d8ed036ea6c32 (diff) | |
download | external_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.cpp | 3 |
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 |