[PATCH] D78678: [flang][NFC] Refactor derived type instantiation
Tim Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 15:48:29 PDT 2020
tskeith created this revision.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
tskeith added reviewers: klausler, PeteSteinfeld.
tskeith edited projects, added Flang; removed LLVM.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78678
Files:
flang/include/flang/Semantics/symbol.h
flang/include/flang/Semantics/type.h
flang/lib/Semantics/symbol.cpp
flang/lib/Semantics/type.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78678.259415.patch
Type: text/x-patch
Size: 14757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/d0587bd7/attachment-0001.bin>
More information about the llvm-commits
mailing list