forked from OSchip/llvm-project
[flang][driver] Generate run-time type info
This is a small follow-up for https://reviews.llvm.org/D120051. It makes sure that tables with "run-time type information for derived types" are generated for code-gen actions. Originally, only non-code-gen actions were updated (i.e. actions that were fully supported at that time). Differential Revision: https://reviews.llvm.org/D127307
This commit is contained in:
parent
74e4d5f256
commit
ef4318e1a4
|
@ -90,7 +90,8 @@ bool CodeGenAction::beginSourceFileAction() {
|
|||
// Otherwise, generate an MLIR module from the input Fortran source
|
||||
assert(getCurrentInput().getKind().getLanguage() == Language::Fortran &&
|
||||
"Invalid input type - expecting a Fortran file");
|
||||
bool res = runPrescan() && runParse() && runSemanticChecks();
|
||||
bool res = runPrescan() && runParse() && runSemanticChecks() &&
|
||||
generateRtTypeTables();
|
||||
if (!res)
|
||||
return res;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
! Test lowering of derived type descriptors builtin data
|
||||
! RUN: bbc -emit-fir %s -o - | FileCheck %s
|
||||
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
|
||||
|
||||
subroutine foo()
|
||||
real, save, target :: init_values(10, 10)
|
||||
|
|
Loading…
Reference in New Issue