diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:15:21 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:15:21 +0000 |
commit | 55b94965b25917c590987db1b92b730b64f17c0c (patch) | |
tree | 5e9f68cd2a027c2265c55447954bfcbc38d641cc /include/llvm | |
parent | 1a9edae76b2e7cf15c5f7c36928b3701ac2ef47b (diff) | |
download | external_llvm-55b94965b25917c590987db1b92b730b64f17c0c.zip external_llvm-55b94965b25917c590987db1b92b730b64f17c0c.tar.gz external_llvm-55b94965b25917c590987db1b92b730b64f17c0c.tar.bz2 |
Get rid of duplicate char*/Section* TextSection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 1 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 8 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 931e31a..077f5b1 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -92,6 +92,7 @@ namespace llvm { /// CurrentSection - The current section we are emitting to. This is /// controlled and used by the SwitchSection method. std::string CurrentSection; + const Section* CurrentSection_; /// IsInTextSection - True if the current section we are emitting to is a /// text section. diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 49a99c5..6e019fd 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -131,8 +131,7 @@ namespace llvm { /// TextSection - Section directive for standard text. /// - const char *TextSection; // Defaults to ".text". - const Section *TextSection_; + const Section *TextSection; // Defaults to ".text". /// DataSection - Section directive for standard data. /// @@ -599,12 +598,9 @@ namespace llvm { // Accessors. // - const char *getTextSection() const { + const Section *getTextSection() const { return TextSection; } - const Section *getTextSection_() const { - return TextSection_; - } const char *getDataSection() const { return DataSection; } |