From 6c4a7ca6ed4f686dcd23e4f2798d9ee8a3119a60 Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Sat, 24 Oct 2009 18:02:44 +0000 Subject: Adding support for placing global objects in shared data memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85006 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PIC16/PIC16TargetObjectFile.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.h') diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.h b/lib/Target/PIC16/PIC16TargetObjectFile.h index ca07bed..0b0ad43 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.h +++ b/lib/Target/PIC16/PIC16TargetObjectFile.h @@ -56,6 +56,7 @@ namespace llvm { mutable std::vector UDATASections_; mutable std::vector IDATASections_; mutable PIC16Section * ROMDATASection_; + mutable PIC16Section * SHAREDUDATASection_; /// Standard Auto Sections. mutable std::vector 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 &AUTOSections() const { return AUTOSections_; } -- cgit v1.1