diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-20 17:12:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-20 17:12:46 +0000 |
| commit | d2905433321cd9c152e719b51128b20dc6bd24c6 (patch) | |
| tree | 45f153757fb621b1e196cdc19d0fbabe350fc131 /llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp | |
| parent | 0854f5c6a82bb5522f1d24188813f3814a18791b (diff) | |
| download | bcm5719-llvm-d2905433321cd9c152e719b51128b20dc6bd24c6.tar.gz bcm5719-llvm-d2905433321cd9c152e719b51128b20dc6bd24c6.zip | |
rename TargetAsmInfo::getASDirective -> getDataASDirective
llvm-svn: 76431
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp index 2471bf747f8..e8b86e04354 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp +++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp @@ -54,25 +54,21 @@ PIC16TargetAsmInfo(const PIC16TargetMachine &TM) HasSingleParameterDotFile = false; } -const char *PIC16TargetAsmInfo::getRomDirective(unsigned size) const -{ - if (size == 8) - return RomData8bitsDirective; - else if (size == 16) - return RomData16bitsDirective; - else if (size == 32) - return RomData32bitsDirective; - else - return NULL; +const char *PIC16TargetAsmInfo::getRomDirective(unsigned Size) const { + switch (Size) { + case 8: return RomData8bitsDirective; + case 16: return RomData16bitsDirective; + case 32: return RomData32bitsDirective; + default: return NULL; + } } -const char *PIC16TargetAsmInfo::getASDirective(unsigned size, - unsigned AS) const { +const char *PIC16TargetAsmInfo:: +getDataASDirective(unsigned Size, unsigned AS) const { if (AS == PIC16ISD::ROM_SPACE) - return getRomDirective(size); - else - return NULL; + return getRomDirective(Size); + return NULL; } const Section * |

