diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-08 22:41:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 22:41:53 +0000 |
| commit | 1cb9396f4f3d2cdf6bf25b12eec6867c65645e55 (patch) | |
| tree | 181ae850501f5204ecdb055cc0368d26a30b0f53 /llvm/lib/Target/PIC16 | |
| parent | 089b7de20dac7361b80f75e82961e053bdc5d7ff (diff) | |
| download | bcm5719-llvm-1cb9396f4f3d2cdf6bf25b12eec6867c65645e55.tar.gz bcm5719-llvm-1cb9396f4f3d2cdf6bf25b12eec6867c65645e55.zip | |
1. Make MCSection an abstract class.
2. Move section switch printing to MCSection virtual method which takes a
TAI. This eliminates textual formatting stuff from TLOF.
3. Eliminate SwitchToSectionDirective, getSectionFlagsAsString, and
TLOFELF::AtIsCommentChar.
llvm-svn: 78510
Diffstat (limited to 'llvm/lib/Target/PIC16')
| -rw-r--r-- | llvm/lib/Target/PIC16/PIC16Section.h | 10 | ||||
| -rw-r--r-- | llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16Section.h b/llvm/lib/Target/PIC16/PIC16Section.h index 08801412b74..4c2ae05707c 100644 --- a/llvm/lib/Target/PIC16/PIC16Section.h +++ b/llvm/lib/Target/PIC16/PIC16Section.h @@ -16,6 +16,7 @@ #include "llvm/MC/MCSection.h" #include "llvm/MC/MCContext.h" +#include "llvm/Support/raw_ostream.h" namespace llvm { @@ -28,9 +29,14 @@ namespace llvm { SectionKind K, MCContext &Ctx) { return new (Ctx) MCSectionPIC16(Name, IsDirective, K, Ctx); } + + + virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + raw_ostream &OS) const { + OS << getName() << '\n'; + } + }; - - } // end namespace llvm diff --git a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp index 50fba39112a..fdd1ae008e0 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp +++ b/llvm/lib/Target/PIC16/PIC16TargetAsmInfo.cpp @@ -33,7 +33,6 @@ PIC16TargetAsmInfo() { ZeroDirective = NULL; AsciiDirective = " dt "; AscizDirective = NULL; - SwitchToSectionDirective = ""; RomData8bitsDirective = " dw "; RomData16bitsDirective = " rom_di "; |

