diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-08-13 16:27:46 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-08-17 07:36:44 +0000 |
commit | 4f21e6aeddc2dbe4ae22aba5b97cae0c50c961f6 (patch) | |
tree | 336abc20dfcc924d52327036cca0e151aaecd5ad /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | ce8272afb3fde5599d6d3827576aa9edda0da322 (diff) | |
download | llvm-4f21e6aeddc2dbe4ae22aba5b97cae0c50c961f6.zip llvm-4f21e6aeddc2dbe4ae22aba5b97cae0c50c961f6.tar.gz llvm-4f21e6aeddc2dbe4ae22aba5b97cae0c50c961f6.tar.bz2 |
[flang][nfc] Tweak the FrontendAction class
This patch refactors the `FrontendAction` class. It merely moves code
around so that re-using it is easier. No new functionality is
introduced.
1. Three new member methods are introduced: `RunPrescan`, `RunParse`,
`RunSemanticChecks`.
2. The following free functions are re-implemented as member methods:
* `reportFatalSemanticErrors`
* `reportFatalScanningErrors`
* `reportFatalParsingErrors`
* `reportFatalErrors`
`reportFatalSemanticErrors` is updated to resemble the other error
reporting functions and to make the API more consistent.
3. The `BeginSourceFileAction` methods are simplified and the unused
input argument is deleted.
Differential Revision: https://reviews.llvm.org/D108130
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions