[PATCH] D51033: [DWARF] Move error printing from DWARF classes to Support library. NFC.

Victor Leschuk via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 05:23:44 PDT 2018


vleschuk created this revision.
vleschuk added reviewers: lhames, jhenderson, aprantl, probinson, dblaikie.
vleschuk added a project: debug-info.
Herald added a subscriber: JDevlieghere.
Herald added a reviewer: JDevlieghere.

Both DWARFDebugLine and DWARFDebugAddr use the same callback mechanism for handling recoverable errors. They both implemented similar warn() function to be used as such callbacks.

In this revision we introduce Display[Error|Warning|Note]() functions in Support library and get rid of code duplication in DWARF classes.


Repository:
  rL LLVM

https://reviews.llvm.org/D51033

Files:
  include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h
  include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
  include/llvm/Support/Error.h
  lib/DebugInfo/DWARF/DWARFContext.cpp
  lib/DebugInfo/DWARF/DWARFDebugAddr.cpp
  lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  lib/Support/Error.cpp
  tools/dsymutil/DwarfLinker.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51033.161697.patch
Type: text/x-patch
Size: 8569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180821/b9534467/attachment.bin>


More information about the llvm-commits mailing list