aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLoweringObjectFile.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-30 22:25:37 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-30 22:25:37 +0000
commit29e066965fb84b3aad2840815c6d0602dafb0b17 (patch)
tree372c2f7b8a7eb6cddb079bf4b4325727041e25de /include/llvm/Target/TargetLoweringObjectFile.h
parent812209a58c5520c604bc9279aa069e5ae066e860 (diff)
downloadexternal_llvm-29e066965fb84b3aad2840815c6d0602dafb0b17.tar.gz
external_llvm-29e066965fb84b3aad2840815c6d0602dafb0b17.tar.bz2
external_llvm-29e066965fb84b3aad2840815c6d0602dafb0b17.zip
Use OutStreamer.SwitchSection instead of writing out textual section directives.
Add a new TargetLoweringObjectFileMachO::getConstTextCoalSection method to get access to that section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLoweringObjectFile.h')
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index 454a0940b9..821e53783c 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -301,11 +301,17 @@ public:
SectionKind K) const;
/// getTextCoalSection - Return the "__TEXT,__textcoal_nt" section we put weak
- /// symbols into.
+ /// text symbols into.
const MCSection *getTextCoalSection() const {
return TextCoalSection;
}
+ /// getConstTextCoalSection - Return the "__TEXT,__const_coal" section
+ /// we put weak read-only symbols into.
+ const MCSection *getConstTextCoalSection() const {
+ return ConstTextCoalSection;
+ }
+
/// getLazySymbolPointerSection - Return the section corresponding to
/// the .lazy_symbol_pointer directive.
const MCSection *getLazySymbolPointerSection() const {