diff options
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 "; |