summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ELFTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-08 06:56:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-08 06:56:16 +0000
commit655fa0fec4b9252f4d260f8ff46982e8c43fe8ac (patch)
tree1bc5a80a02557ef500263a0a57c1bbe4206829ba /llvm/lib/Target/ELFTargetAsmInfo.cpp
parent319548b93c19fc504c17bf507f229faab38c384e (diff)
downloadbcm5719-llvm-655fa0fec4b9252f4d260f8ff46982e8c43fe8ac.tar.gz
bcm5719-llvm-655fa0fec4b9252f4d260f8ff46982e8c43fe8ac.zip
It's not legal to output a GV in a coalesced section if it's used in an ARM PIC relative constantpool.
llvm-svn: 54519
Diffstat (limited to 'llvm/lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/ELFTargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index 82ac847e845..523527c7b6d 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp
@@ -40,7 +40,8 @@ ELFTargetAsmInfo::ELFTargetAsmInfo(const TargetMachine &TM) {
}
const Section*
-ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
+ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV,
+ bool NoCoalesce) const {
SectionKind::Kind Kind = SectionKindForGlobal(GV);
if (const Function *F = dyn_cast<Function>(GV)) {
OpenPOWER on IntegriCloud