summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-26 06:26:55 +0000
committerChris Lattner <sabre@nondot.org>2009-07-26 06:26:55 +0000
commitfb6867c7db4ea9368b38a92e59b45cac034dc998 (patch)
treefe6174c7ba81199b10b5b0c2e679fdb79427cd98 /llvm/lib/Target/TargetAsmInfo.cpp
parentaae21f49156a17c347cf6da44ff30af1ba7bde54 (diff)
downloadbcm5719-llvm-fb6867c7db4ea9368b38a92e59b45cac034dc998.tar.gz
bcm5719-llvm-fb6867c7db4ea9368b38a92e59b45cac034dc998.zip
simplify getSectionForMergableConstant to take a SectionKind.
llvm-svn: 77134
Diffstat (limited to 'llvm/lib/Target/TargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/TargetAsmInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp
index c68f04b2bca..7abfcf9a623 100644
--- a/llvm/lib/Target/TargetAsmInfo.cpp
+++ b/llvm/lib/Target/TargetAsmInfo.cpp
@@ -372,9 +372,8 @@ TargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV,
/// specified size and relocation information, return a section that it
/// should be placed in.
const Section *
-TargetAsmInfo::getSectionForMergableConstant(uint64_t Size,
- unsigned ReloInfo) const {
- if (ReloInfo == 0)
+TargetAsmInfo::getSectionForMergableConstant(SectionKind Kind) const {
+ if (Kind.isReadOnly())
if (const Section *S = getReadOnlySection())
return S;
OpenPOWER on IntegriCloud