summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorVictor Leschuk <vleschuk@accesssoftek.com>2018-08-20 09:59:08 +0000
committerVictor Leschuk <vleschuk@accesssoftek.com>2018-08-20 09:59:08 +0000
commitcba595da825c3a21070b3f9519ae608d8060fb83 (patch)
tree37611d927ef99175f72073b5a0dea4eead4b3e5c /clang/lib/Frontend/CompilerInvocation.cpp
parentbbd2d15d45bc455e3dda62bb8a194ff7a969df68 (diff)
downloadbcm5719-llvm-cba595da825c3a21070b3f9519ae608d8060fb83.tar.gz
bcm5719-llvm-cba595da825c3a21070b3f9519ae608d8060fb83.zip
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud