[PATCH] Generalize debug info / EH emission in AsmPrinter

Timur Iskhodzhanov timurrrr at google.com
Tue Dec 3 07:05:32 PST 2013


  The change got reverted, due to beginFunction() not called by one of the subclasses of AsmPrinter.

  lib/Target/R600/AMDGPUAsmPrinter.cpp
    55 /// We need to override this function so we can avoid
    56 /// the call to EmitFunctionHeader(), which the MCPureStreamer can't handle.
    57 bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {

  Attached is a patch that addresses that.

Hi echristo, rafael, dblaikie,

http://llvm-reviews.chandlerc.com/D2222

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D2222?vs=5781&id=5880#toc

Files:
  include/llvm/CodeGen/AsmPrinter.h
  lib/CodeGen/AsmPrinter/ARMException.cpp
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
  lib/CodeGen/AsmPrinter/DIE.cpp
  lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfException.cpp
  lib/CodeGen/AsmPrinter/DwarfException.h
  lib/CodeGen/AsmPrinter/Win64Exception.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2222.7.patch
Type: text/x-patch
Size: 22701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131203/fb763408/attachment.bin>


More information about the llvm-commits mailing list