llvm/flang/lib/semantics
Tim Keith 0c575ed548 [flang] Implement writing of .mod files.
Module file writing is implemented in mod-file.cc. They need to be
written after all semantic checking. Until then, for testing, write
them out whenever names are resolved.

There is a header comment in the .mod files but it is mostly a
placeholder until we can read them in and do something with it.

Rename `Symbol::details<D>` to `Symbol::get<D>`. This asserts that the
details of the symbol match D and returns that type. But we need a way
to access the details as a variant as well (not just one of its types).
`details()` is the best name for that, especially as we already have
`set_details()`. Renaming the old `details` to `get` also better matches
`has` which is used to check which variant is present.

Original-commit: flang-compiler/f18@8d14be1a16
Reviewed-on: https://github.com/flang-compiler/f18/pull/126
Tree-same-pre-rewrite: false
2018-07-16 16:23:18 -07:00
..
attr.cc [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
attr.h [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
CMakeLists.txt [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
dump-parse-tree.h [flang] Rearrange some facilities into a new lib/common. 2018-06-18 11:05:17 -07:00
mod-file.cc [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
mod-file.h [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
resolve-names.cc [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
resolve-names.h [flang] Make include guards consistent. 2018-05-01 14:07:52 -07:00
rewrite-parse-tree.cc [flang] Name resolution for derived types. 2018-06-22 08:21:19 -07:00
rewrite-parse-tree.h [flang] Make include guards consistent. 2018-05-01 14:07:52 -07:00
scope.cc [flang] Name resolution for derived types. 2018-06-22 08:21:19 -07:00
scope.h [flang] Name resolution for derived types. 2018-06-22 08:21:19 -07:00
symbol.cc [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00
symbol.h [flang] Implement writing of .mod files. 2018-07-16 16:23:18 -07:00
type.cc [flang] clean up clang warnings from master 2018-06-22 14:59:25 -07:00
type.h [flang] clean up clang warnings from master 2018-06-22 14:59:25 -07:00
unparse-with-symbols.cc [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00
unparse-with-symbols.h [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00