[flang] Support multiple CookedSource instances
authorpeter klausler <pklausler@nvidia.com>
Mon, 31 Aug 2020 19:22:24 +0000 (12:22 -0700)
committerpeter klausler <pklausler@nvidia.com>
Wed, 2 Sep 2020 17:34:23 +0000 (10:34 -0700)
commit92a541978618674ce112b2f500853218fed24db8
tree5f04555cdc689f2ca4f2c8b9138bb9257b1630d0
parentecde200209f82b7362277ea59ad84df66c42dd3b
[flang] Support multiple CookedSource instances

These are owned by an instance of a new class AllCookedSources.

This removes the need for a Scope to own a string containing
a module's cooked source stream, and will enable errors to be
emitted when parsing module files in the future.

Differential Revision: https://reviews.llvm.org/D86891
23 files changed:
flang/include/flang/Lower/Bridge.h
flang/include/flang/Lower/ConvertType.h
flang/include/flang/Parser/instrumented-parser.h
flang/include/flang/Parser/message.h
flang/include/flang/Parser/parsing.h
flang/include/flang/Parser/provenance.h
flang/include/flang/Parser/user-state.h
flang/include/flang/Semantics/scope.h
flang/include/flang/Semantics/semantics.h
flang/lib/Parser/debug-parser.cpp
flang/lib/Parser/instrumented-parser.cpp
flang/lib/Parser/message.cpp
flang/lib/Parser/parsing.cpp
flang/lib/Parser/prescan.cpp
flang/lib/Parser/prescan.h
flang/lib/Parser/provenance.cpp
flang/lib/Semantics/mod-file.cpp
flang/lib/Semantics/scope.cpp
flang/lib/Semantics/semantics.cpp
flang/test/Semantics/getsymbols02.f90
flang/tools/f18-parse-demo/f18-parse-demo.cpp
flang/tools/f18/f18.cpp
flang/unittests/Evaluate/intrinsics.cpp