summaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/FormatUtil.cpp
AgeCommit message (Collapse)Author
2024-11-17[DebugInfo] Remove unused includes (NFC) (#116551)Kazu Hirata
Identified with misc-include-cleaner.
2023-12-08[DebugInfo] Use llvm::to_underlying (NFC)Kazu Hirata
2022-08-08[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUALTobias Hieta
These are new debug types that ships with the latest Windows SDK and would warn and finally fail lld-link. The symbols seems to be related to Microsoft's XFG which is their version of CFG. We can't handle any of this yet, so for now we can just ignore these types so that lld doesn't fail with a new version of Windows SDK. Fixes: #56285 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D129378
2022-06-05[PDB] Remove truncate* (NFC)Kazu Hirata
- truncateQuotedNameFront: The last use was removed on Jul 10, 2017 in commit a9d944fd6fd19ac377b5ebea9272676642b7ceaa. - truncateQuotedNameBack: The last use was removed on Mar 26, 2018 in commit 7b84b678a993c8a8236868f65d1d4c2b3e29fb3d. - truncateStringMiddle: The last use was removed on Mar 26, 2018 in commit 7b84b678a993c8a8236868f65d1d4c2b3e29fb3d. - truncateStringBack: The last use is in truncateQuotedNameBack being removed above. - truncateStringFront: The last use is in truncateQuotedNameFront being removed above.
2022-03-25[llvm-pdbutil] Move InputFile/FormatUtil/LinePrinter to PDB library.Carlos Alberto Enciso
At Sony we are developing llvm-dva https://lists.llvm.org/pipermail/llvm-dev/2020-August/144174.html For its PDB support, it requires functionality already present in llvm-pdbutil. We intend to move that functionaly into the PDB library to be shared by both tools. That change will be done in 2 steps, that will be submitted as 2 patches: (1) Replace 'ExitOnError' with explicit error handling. (2) Move the intended shared code to the PDB library. Patch for step (1): https://reviews.llvm.org/D121801 This patch is for step (2). Move InputFile.cpp[h], FormatUtil.cpp[h] and LinePrinter.cpp[h] files to the debug PDB library. It exposes the following functionality that can be used by tools: - Open a PDB file. - Get module debug stream. - Traverse module sections. - Traverse module subsections. Most of the needed functionality is in InputFile, but there are dependencies from LinePrinter and FormatUtil. Some other functionality is in the following functions in DumpOutputStyle.cpp file: - iterateModuleSubsections - getModuleDebugStream - iterateOneModule - iterateSymbolGroups - iterateModuleSubsections Only these specific functions from DumpOutputStyle are moved to the PDB library. Reviewed By: aganea, dblaikie, rnk Differential Revision: https://reviews.llvm.org/D122226