aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetAsmInfo.h
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
commitf1012ce19140bc114c4bad429824ff150e623f38 (patch)
tree9ecbf910a5d51f5486b38f2db97d122569501a6a /include/llvm/Target/TargetAsmInfo.h
parent630c5617bf7e7a51039eadc9d62c91b71e424f51 (diff)
downloadexternal_llvm-f1012ce19140bc114c4bad429824ff150e623f38.zip
external_llvm-f1012ce19140bc114c4bad429824ff150e623f38.tar.gz
external_llvm-f1012ce19140bc114c4bad429824ff150e623f38.tar.bz2
It's not legal to output a GV in a coalesced section if it's used in an ARM PIC relative constantpool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 04e91cb..2fd1492 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -544,8 +544,10 @@ namespace llvm {
const char* name = NULL) const;
/// SectionForGlobal - This hooks returns proper section name for given
- /// global with all necessary flags and marks.
- virtual std::string SectionForGlobal(const GlobalValue *GV) const;
+ /// global with all necessary flags and marks. If NoCoalesce is true,
+ /// do not use coalesced section.
+ virtual std::string SectionForGlobal(const GlobalValue *GV,
+ bool NoCoalesce = false) const;
// Helper methods for SectionForGlobal
virtual std::string UniqueSectionForGlobal(const GlobalValue* GV,
@@ -553,7 +555,8 @@ namespace llvm {
virtual std::string PrintSectionFlags(unsigned flags) const { return ""; }
- virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
+ virtual const Section* SelectSectionForGlobal(const GlobalValue *GV,
+ bool NoCoalesce = false) const;
virtual const Section* SelectSectionForMachineConst(const Type *Ty) const;