diff options
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16AsmPrinter.h')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16AsmPrinter.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.h b/llvm/lib/Target/PIC16/PIC16AsmPrinter.h index f021695eab6..32a2ebdca91 100644 --- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.h +++ b/llvm/lib/Target/PIC16/PIC16AsmPrinter.h @@ -17,6 +17,7 @@ #include "PIC16.h" #include "PIC16TargetMachine.h" +#include "PIC16TargetAsmInfo.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/Support/CommandLine.h" #include "llvm/Target/TargetAsmInfo.h" @@ -31,6 +32,7 @@ namespace llvm { bool V) : AsmPrinter(O, TM, T, OL, V) { PTLI = TM.getTargetLowering(); + PTAI = static_cast<const PIC16TargetAsmInfo *> (T); } private : virtual const char *getPassName() const { @@ -42,13 +44,15 @@ namespace llvm { void printCCOperand(const MachineInstr *MI, int opNum); bool printInstruction(const MachineInstr *MI); // definition autogenerated. bool printMachineInstruction(const MachineInstr *MI); - void EmitExternsAndGlobals (Module &M); + void EmitFunctionDecls (Module &M); + void EmitUndefinedVars (Module &M); + void EmitDefinedVars (Module &M); void EmitIData (Module &M); void EmitUData (Module &M); void EmitAutos (Module &M); void EmitRomData (Module &M); void emitFunctionData(MachineFunction &MF); - void printDecls(void); + void printLibcallDecls(void); protected: bool doInitialization(Module &M); @@ -56,7 +60,8 @@ namespace llvm { private: PIC16TargetLowering *PTLI; - std::list<const char *> Decls; // List of extern decls. + const PIC16TargetAsmInfo *PTAI; + std::list<const char *> LibcallDecls; // List of extern decls. }; } // end of namespace |