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 | b0fdedb3fd123a47e7deca75d1e6f7d64218b07a (patch) | |
| tree | 0c71b0de89919a8164ec6713239fc005365f793e /lib/CodeGen | |
| parent | 3d910835fc5da1ccddefd7cc5978ffe8c903cbf0 (diff) | |
| download | llvm-b0fdedb3fd123a47e7deca75d1e6f7d64218b07a.tar.gz llvm-b0fdedb3fd123a47e7deca75d1e6f7d64218b07a.tar.bz2 llvm-b0fdedb3fd123a47e7deca75d1e6f7d64218b07a.tar.xz | |
Use MachineInstr as an processDebugLoc() argument.
This will allow processDebugLoc() to handle scopes for DWARF debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c84019be13..484ce94ffc 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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); |
