diff options
author | Devang Patel <dpatel@apple.com> | 2009-09-30 23:12:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-09-30 23:12:50 +0000 |
commit | e0709cfc9247239ea4e083c2b8f0a6e570bd3666 (patch) | |
tree | 9e125f759175acd0de388faadc8c49924757b11d /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 3256c751f50682f0d06b76736f756c25dd45f4a5 (diff) | |
download | bcm5719-llvm-e0709cfc9247239ea4e083c2b8f0a6e570bd3666.tar.gz bcm5719-llvm-e0709cfc9247239ea4e083c2b8f0a6e570bd3666.zip |
Use MachineInstr as an processDebugLoc() argument.
This will allow processDebugLoc() to handle scopes for DWARF debug info.
llvm-svn: 83183
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c84019be136..484ce94ffcd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1347,10 +1347,10 @@ 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) { +void AsmPrinter::processDebugLoc(const MachineInstr *MI) { if (!MAI || !DW) return; - + DebugLoc DL = MI->getDebugLoc(); if (MAI->doesSupportDebugInformation() && DW->ShouldEmitDwarfDebug()) { if (!DL.isUnknown()) { DebugLocTuple CurDLT = MF->getDebugLocTuple(DL); |