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 | fb6867c7db4ea9368b38a92e59b45cac034dc998 (patch) | |
tree | fe6174c7ba81199b10b5b0c2e679fdb79427cd98 /llvm/lib/Target/TargetAsmInfo.cpp | |
parent | aae21f49156a17c347cf6da44ff30af1ba7bde54 (diff) | |
download | bcm5719-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.cpp | 5 |
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; |