[flang][NFC] Add accessors to equivalence and common blocks
authorTim Keith <tkeith@nvidia.com>
Wed, 6 May 2020 19:20:07 +0000 (12:20 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 6 May 2020 19:22:28 +0000 (12:22 -0700)
commitd5c05ced82ff698fad3da0537cf9b7cdb38dce85
tree14831f732860804443d2a0a2086811ee7d57f38f
parent947f78ac27f4ea52a443ba9d5983cfe3eaf51148
[flang][NFC] Add accessors to equivalence and common blocks

Add a way to get mutable equivalence sets to Scope so that they can
have sizes and offsets assigned to them.

Change CommonBlockDetails to have mutable symbols so that they can have
sizes and offets assigned to them. This also allows the removal of some
`const_cast`s.

Add MutableSymbolRef and MutableSymbolVector as mutable analogs to
SymbolRef and SymbolVector. Replace uses of equivalent types with those
names.

Differential Revision: https://reviews.llvm.org/D79346
flang/include/flang/Semantics/scope.h
flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/mod-file.cpp
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/scope.cpp
flang/lib/Semantics/symbol.cpp