summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-08-09 01:14:33 +0000
committerDavid Blaikie <dblaikie@gmail.com>2019-08-09 01:14:33 +0000
commit0fcc1f7bac6e70331039e39b743a1e46faa64951 (patch)
treefef56a8b3d30cda021ea348411c03079901a7a39 /clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
parent1fa1cd200b9a005629ca4793a99dd970c7a14371 (diff)
downloadbcm5719-llvm-0fcc1f7bac6e70331039e39b743a1e46faa64951.tar.gz
bcm5719-llvm-0fcc1f7bac6e70331039e39b743a1e46faa64951.zip
DebugInfo/DWARF: Provide some (pretty half-hearted) error handling access when parsing units
This isn't the most robust error handling API, but does allow clients to opt-in to getting Errors they can handle. I suspect the long-term solution would be to move away from the lazy unit parsing and have an explicit step that parses the unit and then allows access to the other APIs that require a parsed unit. llvm-dwarfdump could be expanded to use this (or newer/better API) to demonstrate the benefit of it - but for now lld will use this in a follow-up cl which ensures lld can exit non-zero on errors like this (& provide more descriptive diagnostics including which object file the error came from). (error access to later errors when parsing nested DIEs would be good too - but, again, exposing that without it being a hassle for every consumer may be tricky) llvm-svn: 368377
Diffstat (limited to 'clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud