[all-commits] [llvm/llvm-project] 739f49: [flang][driver] Fix how output filename is generated
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Fri Jul 9 11:15:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 739f49ed12a4d94cef07c7071e2ad6dbb93834f3
https://github.com/llvm/llvm-project/commit/739f49ed12a4d94cef07c7071e2ad6dbb93834f3
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-07-09 (Fri, 09 Jul 2021)
Changed paths:
M flang/tools/f18/flang.in
Log Message:
-----------
[flang][driver] Fix how output filename is generated
Currently, `flang -c file.f` generates `flang_unparsed_source_file_0.o`.
This is incorrect. This patch:
* simplifies the logic around output filename generation, and
* makes sure that `file.o` is produced instead of e.g.
`flang_unparsed_source_file_0.o` when using the `-c` flag
The output filename generation is moved to a dedicated function. I've
also made a few minor improvements, e.g. marked variables as local,
added comments, refined error messages.
Differential Revision: https://reviews.llvm.org/D105546
More information about the All-commits
mailing list