diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-31 16:17:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-31 16:17:13 +0000 |
| commit | fc0264a38e3d2e24d5cd44a6f028e2283f8b71ca (patch) | |
| tree | b826ec8e65bfe945a15fa71b6e33626c03beceb9 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
| parent | 1d1d16c43e5899111c2340e0b8057eb2254708e7 (diff) | |
| download | bcm5719-llvm-fc0264a38e3d2e24d5cd44a6f028e2283f8b71ca.tar.gz bcm5719-llvm-fc0264a38e3d2e24d5cd44a6f028e2283f8b71ca.zip | |
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.
llvm-svn: 77679
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
| -rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index 166f1201781..a42911d92b9 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -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'); |

