llvm-project/llvm/tools/llvm-pdbutil
Duncan P. N. Exon Smith 75c86c9935 Support: Make VarStreamArrayIterator iterate over const values
VarStreamArrayIterator returns a reference to a just-computed internal
value. Change it to iterate over `const ValueType` to avoid allowing
clients to mutate the internal state, and to drop the
non-`const`-qualified operator*().

The removed operator*() was from 175d70ee5c to get
iterator_facade_base::operator->() working, and this fixes the root
cause instead: setting `T` to `const ValueType` causes
iterator_facade_base to infer `PointerT` as `const ValueType*`.

Ironically, this is the last blocker for removing the const-incorrect
overload of `iterator_facade_base::operator->()`, whose presence
triggered adding the workaround in the first place :).

Differential Revision: https://reviews.llvm.org/D113797
2021-11-12 20:37:36 -08:00
..
BytesOutputStyle.cpp
BytesOutputStyle.h
CMakeLists.txt
DumpOutputStyle.cpp [llvm] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
DumpOutputStyle.h
ExplainOutputStyle.cpp Support: Make VarStreamArrayIterator iterate over const values 2021-11-12 20:37:36 -08:00
ExplainOutputStyle.h
FormatUtil.cpp
FormatUtil.h
InputFile.cpp
InputFile.h
LinePrinter.cpp [Support] Convert BinaryStream class zoo to 64-bit offsets 2021-09-16 19:14:52 -04:00
LinePrinter.h [Support] Convert BinaryStream class zoo to 64-bit offsets 2021-09-16 19:14:52 -04:00
MinimalSymbolDumper.cpp [CodeView] Add missing cases for new enum values 2021-07-07 22:15:33 +03:00
MinimalSymbolDumper.h
MinimalTypeDumper.cpp [ADT] Remove APInt/APSInt toString() std::string variants 2021-06-11 13:19:15 +01:00
MinimalTypeDumper.h
OutputStyle.h
PdbYaml.cpp
PdbYaml.h
PrettyBuiltinDumper.cpp
PrettyBuiltinDumper.h
PrettyClassDefinitionDumper.cpp
PrettyClassDefinitionDumper.h
PrettyClassLayoutGraphicalDumper.cpp
PrettyClassLayoutGraphicalDumper.h
PrettyCompilandDumper.cpp
PrettyCompilandDumper.h
PrettyEnumDumper.cpp
PrettyEnumDumper.h
PrettyExternalSymbolDumper.cpp
PrettyExternalSymbolDumper.h
PrettyFunctionDumper.cpp
PrettyFunctionDumper.h
PrettyTypeDumper.cpp
PrettyTypeDumper.h
PrettyTypedefDumper.cpp
PrettyTypedefDumper.h
PrettyVariableDumper.cpp
PrettyVariableDumper.h
StreamUtil.cpp
StreamUtil.h
TypeReferenceTracker.cpp
TypeReferenceTracker.h
YAMLOutputStyle.cpp
YAMLOutputStyle.h
llvm-pdbutil.cpp [llvm][tools] Hide more unrelated LLVM tool options 2021-07-21 09:14:04 +02:00
llvm-pdbutil.h