summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-03 23:20:21 +0000
committerChris Lattner <sabre@nondot.org>2009-08-03 23:20:21 +0000
commit290c2f56ce551ebcf4480ac2944986fe4bb339e9 (patch)
treea407c138a64e70c9b9bc912e03338fd623a408dc /include
parentc6fdced3dbfdf673cc9b01dfad4f08e316d8803d (diff)
downloadexternal_llvm-290c2f56ce551ebcf4480ac2944986fe4bb339e9.zip
external_llvm-290c2f56ce551ebcf4480ac2944986fe4bb339e9.tar.gz
external_llvm-290c2f56ce551ebcf4480ac2944986fe4bb339e9.tar.bz2
eliminate CurrentSection, rename CurrentSection_ -> CurrentSection, make it private,
eliminate IsInTextSection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index cab75f1..847c945 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -60,6 +60,10 @@ namespace llvm {
typedef gcp_map_type::iterator gcp_iterator;
gcp_map_type GCMetadataPrinters;
+ /// CurrentSection - The current section we are emitting to. This is
+ /// controlled and used by the SwitchToSection method.
+ const MCSection *CurrentSection;
+
protected:
/// MMI - If available, this is a pointer to the current MachineModuleInfo.
MachineModuleInfo *MMI;
@@ -110,14 +114,9 @@ namespace llvm {
///
std::string CurrentFnName;
- /// CurrentSection - The current section we are emitting to. This is
- /// controlled and used by the SwitchSection method.
- std::string CurrentSection;
- const MCSection *CurrentSection_;
-
- /// IsInTextSection - True if the current section we are emitting to is a
- /// text section.
- bool IsInTextSection;
+ /// getCurrentSection() - Return the current section we are emitting to.
+ const MCSection *getCurrentSection() const { return CurrentSection; }
+
/// VerboseAsm - Emit comments in assembly output if this is true.
///