summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-05-13 15:13:17 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-05-13 15:13:17 +0000
commit4a71ae268b930316a907b2ce0effe092faa87720 (patch)
tree173073169dba1c1bc6c9550ecb5dc788c9baaca4 /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
parentef8c8ec457051f7f8bae282d6194a2bfd8f4f00b (diff)
downloadbcm5719-llvm-4a71ae268b930316a907b2ce0effe092faa87720.tar.gz
bcm5719-llvm-4a71ae268b930316a907b2ce0effe092faa87720.zip
Run through the list of globals once and sectionize all types of globlas includeing declarations. Later emit them from their section lists.
llvm-svn: 71661
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
index a39209daaf6..e464e36f788 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
+++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
@@ -45,6 +45,8 @@ namespace llvm {
mutable std::vector<PIC16Section *> IDATASections;
mutable std::vector<PIC16Section *> AutosSections;
mutable PIC16Section *ROSection;
+ mutable PIC16Section *ExternalVarDecls;
+ mutable PIC16Section *ExternalVarDefs;
virtual ~PIC16TargetAsmInfo();
private:
@@ -57,6 +59,8 @@ namespace llvm {
const Section *getIDATASectionForGlobal(const GlobalVariable *GV) const;
const Section *getSectionForAuto(const GlobalVariable *GV) const;
virtual const Section *SelectSectionForGlobal(const GlobalValue *GV) const;
+
+
public:
void SetSectionForGVs(Module &M);
std::vector<PIC16Section *> getBSSSections() const {
OpenPOWER on IntegriCloud