diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-04-18 16:13:41 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-04-18 16:13:41 +0000 |
commit | f44d5a8b288b3bb353194a5b9726bbde4cc516f5 (patch) | |
tree | 5f2ee0c4b60fe02c6e6c0f45d6201b022ebee8e6 /lib/Target/NVPTX/NVPTXAsmPrinter.h | |
parent | bb1ae438ca59097e3e6106b1b4e715631150f419 (diff) |
[DEBUG] Initial adaptation of NVPTX target for debug info emission.
Summary:
Patch adds initial emission of the debug info for NVPTX target.
Currently, only .file and .loc directives are emitted, everything else is
commented out to not break the compilation of Cuda.
Reviewers: echristo, jlebar, tra, jholewinski
Subscribers: mgorny, aprantl, JDevlieghere, llvm-commits
Differential Revision: https://reviews.llvm.org/D41827
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/NVPTXAsmPrinter.h')
-rw-r--r-- | lib/Target/NVPTX/NVPTXAsmPrinter.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Target/NVPTX/NVPTXAsmPrinter.h b/lib/Target/NVPTX/NVPTXAsmPrinter.h index 8ec3476b871..9fe9c1e736f 100644 --- a/lib/Target/NVPTX/NVPTXAsmPrinter.h +++ b/lib/Target/NVPTX/NVPTXAsmPrinter.h @@ -344,10 +344,7 @@ public: delete reader; } - bool runOnMachineFunction(MachineFunction &F) override { - nvptxSubtarget = &F.getSubtarget<NVPTXSubtarget>(); - return AsmPrinter::runOnMachineFunction(F); - } + bool runOnMachineFunction(MachineFunction &F) override; void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<MachineLoopInfo>(); @@ -357,9 +354,6 @@ public: bool ignoreLoc(const MachineInstr &); std::string getVirtualRegisterName(unsigned) const; - - DebugLoc prevDebugLoc; - void emitLineNumberAsDotLoc(const MachineInstr &); }; } // end namespace llvm |