[clang] Remove `-triple` from the invocations of `flang-new -fc1`
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Thu, 10 Dec 2020 11:46:35 +0000 (11:46 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Thu, 10 Dec 2020 17:54:12 +0000 (17:54 +0000)
commit764690b8a883c9466324f9c33ab1047a0661e8ef
tree4df93ef6815472c7d61c0c91cf94339a014bd13c
parentb035513c06d1cba2bae8f3e88798334e877523e1
[clang] Remove `-triple` from the invocations of `flang-new -fc1`

This is just a small change in the Flang tool within libclangDriver.
Currently it passes `-triple` when calling `flang-new -fc1` for various
driver Jobs. As there is no support for code-generation, `-triple` is
not required and should remain unsupported. It is safe to remove it.

This hasn't been a problem as the affected driver Jobs are not yet
implemented or used. However, we will be adding support for them in the
near future and the fact `-triple` is added will become a problem.

Differential Revision: https://reviews.llvm.org/D93027
clang/lib/Driver/ToolChains/Flang.cpp
clang/test/Driver/flang/flang.f90
clang/test/Driver/flang/flang_ucase.F90