mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
fix PR4650: we only track sizes for certain objects, so only put something
into the mergable section if it is one of our special cases. This could obviously be improved, but this is the minimal fix and restores us to the previous behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -340,7 +340,10 @@ getSectionFlagsAsString(SectionKind Kind, SmallVectorImpl<char> &Str) const {
|
||||
Str.push_back('x');
|
||||
if (Kind.isWriteable())
|
||||
Str.push_back('w');
|
||||
if (Kind.isMergeableConst() || Kind.isMergeableCString())
|
||||
if (Kind.isMergeableCString() ||
|
||||
Kind.isMergeableConst4() ||
|
||||
Kind.isMergeableConst8() ||
|
||||
Kind.isMergeableConst16())
|
||||
Str.push_back('M');
|
||||
if (Kind.isMergeableCString())
|
||||
Str.push_back('S');
|
||||
|
Reference in New Issue
Block a user