diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-08 23:39:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 23:39:42 +0000 |
commit | 93b6db3de934a3cfca5586df25184fef4a54c500 (patch) | |
tree | 3c32466a689b69726787f2b72bcdaf6a3879df50 /lib/Target/PIC16/PIC16TargetObjectFile.h | |
parent | 8e9ece75db5045ec057efbbdba6550fa0d85e695 (diff) |
sink the 'name' and 'isdirective' state out of MCSection into its derived classes.
This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.h')
-rw-r--r-- | lib/Target/PIC16/PIC16TargetObjectFile.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.h b/lib/Target/PIC16/PIC16TargetObjectFile.h index f8389a6adc..edd2b1cc15 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.h +++ b/lib/Target/PIC16/PIC16TargetObjectFile.h @@ -17,6 +17,7 @@ namespace llvm { class GlobalVariable; class Module; class PIC16TargetMachine; + class MCSectionPIC16; enum { DataBankSize = 80 }; @@ -29,12 +30,12 @@ namespace llvm { /// FIXME: MOVE ALL THIS STUFF TO MCSectionPIC16. /// struct PIC16Section { - const MCSection *S_; // Connection to actual Section. + const MCSectionPIC16 *S_; // Connection to actual Section. unsigned Size; // Total size of the objects contained. bool SectionPrinted; std::vector<const GlobalVariable*> Items; - PIC16Section(const MCSection *s) { + PIC16Section(const MCSectionPIC16 *s) { S_ = s; Size = 0; SectionPrinted = false; @@ -46,8 +47,8 @@ namespace llvm { class PIC16TargetObjectFile : public TargetLoweringObjectFile { const TargetMachine *TM; - const MCSection *getPIC16Section(const char *Name, bool isDirective, - SectionKind K) const; + const MCSectionPIC16 *getPIC16Section(const char *Name, + SectionKind K) const; public: mutable std::vector<PIC16Section*> BSSSections; mutable std::vector<PIC16Section*> IDATASections; |