summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-06-09 15:31:19 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-06-09 15:31:19 +0000
commit7607eba03697af4a8a981865d121d2f8f5b01cf2 (patch)
tree9e292d191add7a65b27542aa53c1912d6e1dbba3 /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
parente6d3ae9d99f511990594dbb2e74461924aef35bd (diff)
downloadbcm5719-llvm-7607eba03697af4a8a981865d121d2f8f5b01cf2.tar.gz
bcm5719-llvm-7607eba03697af4a8a981865d121d2f8f5b01cf2.zip
PIC16 emits auto variables as globals. When optimizer removes a function entierly by estimating its side effects on globals, those globals(autos) without a function were not being printed by the Asm printer.
llvm-svn: 73135
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
index e464e36f788..b7292b8ea78 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
+++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
@@ -33,9 +33,13 @@ namespace llvm {
struct PIC16Section {
const Section *S_; // Connection to actual Section.
unsigned Size; // Total size of the objects contained.
+ bool SectionPrinted;
std::vector<const GlobalVariable*> Items;
- PIC16Section (const Section *s) { S_ = s; Size = 0; }
+ PIC16Section (const Section *s) { S_ = s; Size = 0;
+ SectionPrinted = false;}
+ bool isPrinted() { return SectionPrinted ; }
+ void setPrintedStatus(bool status) { SectionPrinted = status ;}
};
struct PIC16TargetAsmInfo : public TargetAsmInfo {
OpenPOWER on IntegriCloud