diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-22 20:56:12 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-22 20:56:12 +0000 |
| commit | 181c7cbb033ebdc80c8c7d365950f7a0a9daf6c8 (patch) | |
| tree | 8ae272bc9790c58db21d7d81049bdc5017151f44 /lib | |
| parent | f97ae6be182c6f279e6e6fbf62df467ca71af106 (diff) | |
| download | external_llvm-181c7cbb033ebdc80c8c7d365950f7a0a9daf6c8.zip external_llvm-181c7cbb033ebdc80c8c7d365950f7a0a9daf6c8.tar.gz external_llvm-181c7cbb033ebdc80c8c7d365950f7a0a9daf6c8.tar.bz2 | |
revert 79764, my dependencies failed me again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp | 2 | ||||
| -rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.cpp | 1 | ||||
| -rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.h | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp index 8b1cee9..d6e9556 100644 --- a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp +++ b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp @@ -35,7 +35,7 @@ using namespace llvm; PIC16AsmPrinter::PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM, const MCAsmInfo *T, bool V) -: AsmPrinter(O, TM, T, V), DbgInfo(O) { +: AsmPrinter(O, TM, T, V), DbgInfo(O, T) { PTLI = static_cast<PIC16TargetLowering*>(TM.getTargetLowering()); PTAI = static_cast<const PIC16MCAsmInfo*>(T); PTOF = (PIC16TargetObjectFile*)&PTLI->getObjFileLowering(); diff --git a/lib/Target/PIC16/PIC16DebugInfo.cpp b/lib/Target/PIC16/PIC16DebugInfo.cpp index 460be58..75c9556 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.cpp +++ b/lib/Target/PIC16/PIC16DebugInfo.cpp @@ -15,6 +15,7 @@ #include "PIC16DebugInfo.h" #include "llvm/GlobalVariable.h" #include "llvm/CodeGen/MachineFunction.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/Support/DebugLoc.h" #include "llvm/Support/FormattedStream.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Target/PIC16/PIC16DebugInfo.h b/lib/Target/PIC16/PIC16DebugInfo.h index d4d3a21..ae677ca 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.h +++ b/lib/Target/PIC16/PIC16DebugInfo.h @@ -92,6 +92,7 @@ namespace llvm { class PIC16DbgInfo { formatted_raw_ostream &O; + const MCAsmInfo *TAI; std::string CurFile; unsigned CurLine; @@ -100,7 +101,8 @@ namespace llvm { bool EmitDebugDirectives; public: - PIC16DbgInfo(formatted_raw_ostream &o): O(o) { + PIC16DbgInfo(formatted_raw_ostream &o, const MCAsmInfo *T) + : O(o), TAI(T) { CurFile = ""; CurLine = 0; EmitDebugDirectives = false; |
