1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/include/llvm/DebugInfo
Victor Leschuk 06118e72e3 [DWARF] Refactor DWARF classes to use unified error reporting. NFC.
DWARF-related classes in lib/DebugInfo/DWARF contained 
duplicating code for creating StringError instances, like:

template <typename... Ts>
static Error createError(char const *Fmt, const Ts &... Vals) {
  std::string Buffer;
  raw_string_ostream Stream(Buffer);
  Stream << format(Fmt, Vals...);
  return make_error<StringError>(Stream.str(), inconvertibleErrorCode());
}

Similar function was placed in Support lib in https://reviews.llvm.org/D49824

This revision makes DWARF classes use this function
instead of their local implementation of it.

Reviewers: aprantl, dblaikie, probinson, wolfgangp, JDevlieghere, jhenderson

Reviewed By: JDevlieghere, jhenderson

Differential Revision: https://reviews.llvm.org/D49964

llvm-svn: 340163
2018-08-20 09:59:08 +00:00
..
CodeView Add the extended XMM registers mappings for AVX-512. 2018-08-18 03:54:16 +00:00
DWARF [DWARF] Refactor DWARF classes to use unified error reporting. NFC. 2018-08-20 09:59:08 +00:00
MSF Move some code from PDBFileBuilder to MSFBuilder. 2018-06-27 21:18:15 +00:00
PDB Move some code from PDBFileBuilder to MSFBuilder. 2018-06-27 21:18:15 +00:00
Symbolize Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
DIContext.h [DWARF] Support for .debug_addr (consumer) 2018-07-31 22:19:19 +00:00