[flang][driver] Unify f18_version.h.in and Version.inc.in
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Mon, 11 Jan 2021 16:16:29 +0000 (16:16 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Thu, 14 Jan 2021 13:50:46 +0000 (13:50 +0000)
commita1bbd1ef1dbd2a39777ef0b2d623f15f0523cdbf
tree722532a8b2c83d42d86b3137249c42ba5e32ae6d
parent176f5e95e1afad75ff045a00f0fa9c781bd5f54a
[flang][driver] Unify f18_version.h.in and Version.inc.in

Flang has two CMake configurable header files that define compiler
version numbers:
* f18_version.h.in - only used in f18.cpp (uses version numbers from
  LLVM's macro definitions)
* Version.inc.in - not currently used (uses version numbers hard-coded
  in Flang's top CMake script)

Currently only f18_version.h.in provides version numbers consistent with
other subprojects in llvm-project. However, its location and name are
inconsistent with e.g. Clang. This patch merges the two headers
together:
  * hard-coded version numbers in Flang's top CMake script are deleted
  * Version.inc.in is updated to provide string versions of version
  numbers (required by f18.cpp)
  * f18_version.h.in is deleted as it's no longer needed

Differential Revision: https://reviews.llvm.org/D94422
flang/CMakeLists.txt
flang/include/flang/Version.inc.in
flang/tools/f18/CMakeLists.txt
flang/tools/f18/f18.cpp
flang/tools/f18/f18_version.h.in [deleted file]