[all-commits] [llvm/llvm-project] d5c05c: [flang][NFC] Add accessors to equivalence and comm...

Tim Keith via All-commits all-commits at lists.llvm.org
Wed May 6 12:23:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d5c05ced82ff698fad3da0537cf9b7cdb38dce85
      https://github.com/llvm/llvm-project/commit/d5c05ced82ff698fad3da0537cf9b7cdb38dce85
  Author: Tim Keith <tkeith at nvidia.com>
  Date:   2020-05-06 (Wed, 06 May 2020)

  Changed paths:
    M flang/include/flang/Semantics/scope.h
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/mod-file.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/scope.cpp
    M flang/lib/Semantics/symbol.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list