[all-commits] [llvm/llvm-project] 962300: [flang][NFC] Refactor derived type instantiation
Tim Keith via All-commits
all-commits at lists.llvm.org
Thu Apr 23 08:30:34 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9623003e9380e649bff0ebee3f11903ccf75af12
https://github.com/llvm/llvm-project/commit/9623003e9380e649bff0ebee3f11903ccf75af12
Author: Tim Keith <tkeith at nvidia.com>
Date: 2020-04-23 (Thu, 23 Apr 2020)
Changed paths:
M flang/include/flang/Semantics/symbol.h
M flang/include/flang/Semantics/type.h
M flang/lib/Semantics/symbol.cpp
M flang/lib/Semantics/type.cpp
Log Message:
-----------
[flang][NFC] Refactor derived type instantiation
Summary:
Move InstantiateComponent and InstantiateIntrinsicType from symbol.cpp
to type.cpp as that is where they are called.
Put both in InstantiateHelper class to better isolate them.
Add CreateDerivedTypeSpec in InstantiateHelper.
Add non-const forms for AsIntrinsic and AsDerived to avoid const_cast.
No functional changes.
Reviewers: DavidTruby, klausler, PeteSteinfeld, jdoerfert
Reviewed By: klausler
Subscribers: llvm-commits
Tags: #flang, #llvm
Differential Revision: https://reviews.llvm.org/D78678
More information about the All-commits
mailing list