summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-02-02 16:53:06 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-02-02 16:53:06 +0000
commit50aeb12d806a4e1aca9a3bd903d71ee3c01660db (patch)
tree845e9332cfac7d1bc9a1325352b41f80effa8f6d /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
parent598afdcfe758846b5e248a5e9b457a3c1f2d9901 (diff)
downloadbcm5719-llvm-50aeb12d806a4e1aca9a3bd903d71ee3c01660db.tar.gz
bcm5719-llvm-50aeb12d806a4e1aca9a3bd903d71ee3c01660db.zip
Made the common case of default address space directive as non-virtual for performance reasons. Provide a single virtual interface for directives of all sizes in non-default address spaces.
llvm-svn: 63521
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
index b75699ba8c4..305e74d5a30 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
+++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.h
@@ -23,13 +23,12 @@ namespace llvm {
struct PIC16TargetAsmInfo : public TargetAsmInfo {
PIC16TargetAsmInfo(const PIC16TargetMachine &TM);
+ private:
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;
+ const char *getRomDirective(unsigned size) const;
+ virtual const char *getASDirective(unsigned size, unsigned AS) const;
};
} // namespace llvm
OpenPOWER on IntegriCloud