[all-commits] [llvm/llvm-project] baebc1: [clang][driver] Set the input type to Fortran when...
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Thu Feb 25 05:14:29 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: baebc1162f810f7bf5de48919054f75a2f81e180
https://github.com/llvm/llvm-project/commit/baebc1162f810f7bf5de48919054f75a2f81e180
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-02-25 (Thu, 25 Feb 2021)
Changed paths:
M clang/lib/Driver/Driver.cpp
M flang/test/Flang-Driver/input-from-stdin.f90
Log Message:
-----------
[clang][driver] Set the input type to Fortran when reading from stdin
This patch makes sure that for the following invocation of the new Flang
driver, clangDriver sets the input type to Fortran:
```
flang-new -E -
```
This change does not affect `clang`, i.e. for the following invocation
the input type is set to C:
```
clang -E -
```
This change leverages the fact that for `flang-new` the driver is in
Flang mode.
Differential Revision: https://reviews.llvm.org/D96777
More information about the All-commits
mailing list