1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/tools/llvm-pdbutil
Simon Pilgrim 165132af1b [ADT] Remove APInt/APSInt toString() std::string variants
<string> is currently the highest impact header in a clang+llvm build:

https://commondatastorage.googleapis.com/chromium-browser-clang/llvm-include-analysis.html

One of the most common places this is being included is the APInt.h header, which needs it for an old toString() implementation that returns std::string - an inefficient method compared to the SmallString versions that it actually wraps.

This patch replaces these APInt/APSInt methods with a pair of llvm::toString() helpers inside StringExtras.h, adjusts users accordingly and removes the <string> from APInt.h - I was hoping that more of these users could be converted to use the SmallString methods, but it appears that most end up creating a std::string anyhow. I avoided trying to use the raw_ostream << operators as well as I didn't want to lose having the integer radix explicit in the code.

Differential Revision: https://reviews.llvm.org/D103888
2021-06-11 13:19:15 +01:00
..
BytesOutputStyle.cpp
BytesOutputStyle.h
CMakeLists.txt
DumpOutputStyle.cpp [llvm] Remove redundant return and continue statements (NFC) 2021-01-14 20:30:34 -08:00
DumpOutputStyle.h
ExplainOutputStyle.cpp
ExplainOutputStyle.h
FormatUtil.cpp [llvm-pdbutil] Don't crash when printing unknown CodeView type records 2021-01-07 15:44:55 -05:00
FormatUtil.h [llvm-pdbutil] Don't crash when printing unknown CodeView type records 2021-01-07 15:44:55 -05:00
InputFile.cpp [NFC] Reordering parameters in getFile and getFileOrSTDIN 2021-03-25 09:47:49 -04:00
InputFile.h
LinePrinter.cpp
LinePrinter.h
llvm-pdbutil.cpp Removed redundant code. 2021-04-07 05:37:46 +04:00
llvm-pdbutil.h
MinimalSymbolDumper.cpp [ADT] Remove APInt/APSInt toString() std::string variants 2021-06-11 13:19:15 +01: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
PrettyTypedefDumper.cpp
PrettyTypedefDumper.h
PrettyTypeDumper.cpp
PrettyTypeDumper.h
PrettyVariableDumper.cpp
PrettyVariableDumper.h
StreamUtil.cpp
StreamUtil.h
TypeReferenceTracker.cpp
TypeReferenceTracker.h
YAMLOutputStyle.cpp
YAMLOutputStyle.h