aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorAndrzej Warzynski <andrzej.warzynski@arm.com>2021-02-04 16:23:42 +0000
committerAndrzej Warzynski <andrzej.warzynski@arm.com>2021-02-04 16:51:59 +0000
commitba000628bdbddfe1ec37da9aa7aa2d19f03cb3a4 (patch)
treeaa47ca88150a1b11540149f3e73735c1f6142cd2 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent1700ea7302870b38df2cd048d9920368dc87453b (diff)
downloadllvm-ba000628bdbddfe1ec37da9aa7aa2d19f03cb3a4.zip
llvm-ba000628bdbddfe1ec37da9aa7aa2d19f03cb3a4.tar.gz
llvm-ba000628bdbddfe1ec37da9aa7aa2d19f03cb3a4.tar.bz2
[flang][driver] Fix reading from stdin when using `-test-io`
This patch adds logic in the InputOutputTestAction frontend action for reading input from stdin. Without this patch the following fails: ``` flang-new -fc1 -test-io - ``` The implementation of `InputOutputTestAction` is cleaned-up and a test for reading from stdin is added. Note that there's a difference between `-test-io` and e.g. `-E` in terms of file I/O. The frontend action for the former handles all file I/O on it's own. Conversely, the action corresponding to -E relies on the prescanner API to handle this. Currently we can't test reading from stdin for `flang-new -`. In this case `libclangDriver` assumes `-x -c`. This in turn leads to `flang-new -cc1`, which is not supported.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions