diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-05 04:09:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-05 04:09:18 +0000 |
commit | d250329291dd9fe0d5f0e72e6cf1e287558a7cba (patch) | |
tree | 28fa7083107ad5539ccd64cc65519dc3d319e80f /lib | |
parent | 7cf85030f4ad79e2fa29aa4b0340a6c50577afbd (diff) |
add a temporary hook to allow reuse of the asmprinter from the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 1de31bbc79..69bc5edf37 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1319,6 +1319,9 @@ void AsmPrinter::PrintSpecial(const MachineInstr *MI, const char *Code) const { /// processDebugLoc - Processes the debug information of each machine /// instruction's DebugLoc. void AsmPrinter::processDebugLoc(DebugLoc DL) { + if (!TAI || !DW) + return; + if (TAI->doesSupportDebugInformation() && DW->ShouldEmitDwarfDebug()) { if (!DL.isUnknown()) { DebugLocTuple CurDLT = MF->getDebugLocTuple(DL); |