diff options
| author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-10-25 08:14:11 +0000 |
|---|---|---|
| committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-10-25 08:14:11 +0000 |
| commit | b18a46806b60b7abf67184f8ca8eb5e41809856d (patch) | |
| tree | f391f02b987db040997db5fae10fa75a449420a1 /llvm/lib/Target/PIC16/PIC16TargetObjectFile.h | |
| parent | 69140ec4fa97df8d7ff7686d6e0e68a9fefd8f4d (diff) | |
| download | bcm5719-llvm-b18a46806b60b7abf67184f8ca8eb5e41809856d.tar.gz bcm5719-llvm-b18a46806b60b7abf67184f8ca8eb5e41809856d.zip | |
Reapply 85006 with a minor fix.
llvm-svn: 85052
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetObjectFile.h')
| -rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetObjectFile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h index ca07bedafe1..0b0ad43ff94 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h +++ b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h @@ -56,6 +56,7 @@ namespace llvm { mutable std::vector<PIC16Section *> UDATASections_; mutable std::vector<PIC16Section *> IDATASections_; mutable PIC16Section * ROMDATASection_; + mutable PIC16Section * SHAREDUDATASection_; /// Standard Auto Sections. mutable std::vector<PIC16Section *> AUTOSections_; @@ -110,6 +111,10 @@ namespace llvm { /// Allocate DATA at user specified address. const MCSection *allocateAtGivenAddress(const GlobalVariable *GV, const std::string &Addr) const; + + /// Allocate a shared variable to SHARED section. + const MCSection *allocateSHARED(const GlobalVariable *GV, + Mangler *Mang) const; public: PIC16TargetObjectFile(); @@ -147,6 +152,9 @@ namespace llvm { const PIC16Section *ROMDATASection() const { return ROMDATASection_; } + const PIC16Section *SHAREDUDATASection() const { + return SHAREDUDATASection_; + } const std::vector<PIC16Section *> &AUTOSections() const { return AUTOSections_; } |

