mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
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:
parent
2a889172a4
commit
87fc6b4f86
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user