summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-01-28 17:54:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-01-28 17:54:19 +0000
commita05b3b73a4e9434f4e5c9fd406b02af968a5daf4 (patch)
tree559b7b6ac8c80f46324804011dca4f668cc51863 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentfe03c9a67877a11f50847ca32a6d0fbc17580410 (diff)
downloadbcm5719-llvm-a05b3b73a4e9434f4e5c9fd406b02af968a5daf4.tar.gz
bcm5719-llvm-a05b3b73a4e9434f4e5c9fd406b02af968a5daf4.zip
Simplify code. NFC.
llvm-svn: 227333
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index f68d6a8a2df..84862811a9c 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -276,9 +276,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
if (Kind.isText()) return TextSection;
- if (Kind.isMergeable1ByteCString() ||
- Kind.isMergeable2ByteCString() ||
- Kind.isMergeable4ByteCString()) {
+ if (Kind.isMergeableCString()) {
// We also need alignment here.
// FIXME: this is getting the alignment of the character, not the
OpenPOWER on IntegriCloud