[PATCH] D87008: [DebugInfo] Fix methods of AsmPrinter to emit values corresponding to the DWARF format (1/19).

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 2 05:47:08 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: dblaikie, jhenderson, probinson, aprantl.
ikudrin added projects: LLVM, debug-info.
Herald added subscribers: hiraditya, mgorny.
ikudrin requested review of this revision.

These methods are used to emit values which are 32-bit in DWARF32 and 64-bit in DWARF64. The patch fixes them so that they choose the length automatically, depending on the DWARF format set in the Context.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87008

Files:
  llvm/include/llvm/CodeGen/AsmPrinter.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
  llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
  llvm/unittests/CodeGen/CMakeLists.txt
  llvm/unittests/CodeGen/TestAsmPrinter.cpp
  llvm/unittests/CodeGen/TestAsmPrinter.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87008.289411.patch
Type: text/x-patch
Size: 20948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200902/48113610/attachment.bin>


More information about the llvm-commits mailing list