diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-26 06:26:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 06:26:55 +0000 |
commit | 5c2f789952ff315021afb10381f141f2ac3b1a6b (patch) | |
tree | 2ae0bbd9bc6de6fa917533c7992c7b7d69054f8f /lib/Target/TargetAsmInfo.cpp | |
parent | f15327290e624472a7565ac5d022767a78912ab6 (diff) | |
download | external_llvm-5c2f789952ff315021afb10381f141f2ac3b1a6b.tar.gz external_llvm-5c2f789952ff315021afb10381f141f2ac3b1a6b.tar.bz2 external_llvm-5c2f789952ff315021afb10381f141f2ac3b1a6b.zip |
simplify getSectionForMergableConstant to take a SectionKind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index c68f04b2bc..7abfcf9a62 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/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; |