aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorAlex Langford <alangford@apple.com>2023-06-14 10:58:35 -0700
committerAlex Langford <alangford@apple.com>2023-06-16 11:16:16 -0700
commit0356ceedf2e90459597adfda19db2c52faf7aacd (patch)
tree7d74cad346b9c3bac2d1bcba155857058af0d445 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parentf2a1320c2ff5be9b3280eb926d3f10dc86f56d7f (diff)
downloadllvm-0356ceedf2e90459597adfda19db2c52faf7aacd.zip
llvm-0356ceedf2e90459597adfda19db2c52faf7aacd.tar.gz
llvm-0356ceedf2e90459597adfda19db2c52faf7aacd.tar.bz2
[DebugInfo] Change DWARFDebugAbbrev initialization
I plan on adding better error handling to DWARFDebugAbbrev, but first I want us to be able to better reason about a state of a DWARFDebugAbbrev. I want us to be able to initialize a DWARFDebugAbbrev in its complete state instead of creating it and then calling an `extract` method manually. If its Data field is populated, then parsing is not complete. If Data is `std::nullopt`, then parsing is done and this section is "finalized" in some sense. Additionally, I have removed the `clear()` method. This makes sense for other classes like DWARFAbbreviationDeclaration where we may want to re-use an object repeatedly to avoid repeated initializations and allocations, but for DWARFDebugAbbrev we pretty much create one and stick with it. Differential Revision: https://reviews.llvm.org/D152947
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions