[flang-commits] [PATCH] D137859: [flang] Restore ENUM_CLASS() to be compilation-time code

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Nov 11 18:25:39 PST 2022


klausler updated this revision to Diff 474911.
klausler added a comment.
Herald added a subscriber: mehdi_amini.

Convert return type to std::string_view, which is more compatible with constexpr than std::string.

Adjust a few call sites where this made a difference.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137859/new/

https://reviews.llvm.org/D137859

Files:
  flang/include/flang/Common/enum-class.h
  flang/include/flang/Common/enum-set.h
  flang/include/flang/Common/idioms.h
  flang/include/flang/Evaluate/type.h
  flang/include/flang/Parser/characters.h
  flang/include/flang/Parser/dump-parse-tree.h
  flang/include/flang/Parser/message.h
  flang/lib/Common/idioms.cpp
  flang/lib/Evaluate/characteristics.cpp
  flang/lib/Lower/IO.cpp
  flang/lib/Parser/message.cpp
  flang/lib/Parser/unparse.cpp
  flang/lib/Semantics/attr.cpp
  flang/lib/Semantics/expression.cpp
  flang/lib/Semantics/mod-file.cpp
  flang/lib/Semantics/symbol.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137859.474911.patch
Type: text/x-patch
Size: 16515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221112/fc5293fe/attachment-0001.bin>


More information about the flang-commits mailing list