[LLVMbugs] [Bug 9810] New: AsmPrinter class does not emit debug line information.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 28 19:37:39 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9810
Summary: AsmPrinter class does not emit debug line information.
Product: libraries
Version: 2.7
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
If the AsmPrinter class is overloaded and the printInstruction function is
called per the documentation here,
http://llvm.org/docs/WritingAnLLVMBackend.html#assemblyPrinter,
no debug line information is emitted in the resulting assembly file.
The reason for this is that AsmPrinter::EmitInstruction uses MachineInstr and
the line information is only emitted in the MCAsmStream::EmitInstruction
function which uses MCInstr instead.
Either the documentation needs to be updated so that it specifies that the
translation of MachineInstr to MCInstr needs to occur or that in the function
AsmPrinter::EmitFunctionBody, the call to MCLineEntry::Make(&OutStreamer,
getCurrentSection()); needs to be added for each instruction.
Otherwise the debug information does not have any debug lines.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list