diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-01-30 04:25:10 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-01-30 04:25:10 +0000 |
commit | 964a29f6717b1c29d0f74a56a1e23d77bdc8b1d0 (patch) | |
tree | 958b12086832997777dab57f7749c74087d3c1e4 /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h | |
parent | 9b3407e5bb5f6fbe5a6fbf4559989426abfd58a8 (diff) | |
download | bcm5719-llvm-964a29f6717b1c29d0f74a56a1e23d77bdc8b1d0.tar.gz bcm5719-llvm-964a29f6717b1c29d0f74a56a1e23d77bdc8b1d0.zip |
Enable emitting of constant values in non-default address space as well. The APIs emitting constants now take an additional parameter signifying the address space in which to emit. The APIs like getData8BitsDirective() etc are made virtual enabling targets to be able to define appropirate directivers for various sizes and address spaces.
llvm-svn: 63377
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h index 88de79f357e..b75699ba8c4 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h +++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h @@ -23,7 +23,13 @@ namespace llvm { struct PIC16TargetAsmInfo : public TargetAsmInfo { PIC16TargetAsmInfo(const PIC16TargetMachine &TM); + const char *RomData8bitsDirective; + const char *RomData16bitsDirective; + const char *RomData32bitsDirective; public : + virtual const char *getData8bitsDirective(unsigned AddrSpace = 0) const; + virtual const char *getData16bitsDirective(unsigned AddrSpace = 0) const; + virtual const char *getData32bitsDirective(unsigned AddrSpace = 0) const; }; } // namespace llvm |