Drop mergeable flag, if size is no suitable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-07-09 13:26:05 +00:00
parent 2a889172a4
commit 87fc6b4f86

View File

@ -323,8 +323,11 @@ X86DarwinTargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV,
Type = C->getType();
unsigned Size = TD->getABITypeSize(Type);
if (Size > 16)
if (Size > 16) {
// Too big for mergeable
Size = 0;
Flags &= ~SectionFlags::Mergeable;
}
Flags = SectionFlags::setEntitySize(Flags, Size);
}
@ -513,8 +516,11 @@ X86ELFTargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV,
Type = C->getType();
unsigned Size = TD->getABITypeSize(Type);
if (Size > 16)
if (Size > 16) {
// Too big for mergeable
Size = 0;
Flags &= ~SectionFlags::Mergeable;
}
Flags = SectionFlags::setEntitySize(Flags, Size);
}