aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2025-06-30 08:04:02 +0000
committerDavid Spickett <david.spickett@linaro.org>2025-06-30 08:09:22 +0000
commit9fbde32a8c75a288d237e74d0a459ec7dc7698d8 (patch)
treed2cedbf5d6e7eccca18d2086a2ae9267b0179cb7 /llvm/lib/MC/MCCodeView.cpp
parente0864b56b01696d7d386dfcc9437304282e1c84d (diff)
downloadllvm-9fbde32a8c75a288d237e74d0a459ec7dc7698d8.zip
llvm-9fbde32a8c75a288d237e74d0a459ec7dc7698d8.tar.gz
llvm-9fbde32a8c75a288d237e74d0a459ec7dc7698d8.tar.bz2
Revert "CodeView: Move MCCVDefRangeFragment storage to MCContext/MCFragment"
This reverts commit e47d4010d34119c2b4a28e7609fde35449a8b437. Causing a few tests to crash on Windows buildbots.
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index e053747..1407bc5 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -444,11 +444,6 @@ MCFragment *CodeViewContext::emitDefRange(
StringRef FixedSizePortion) {
// Create and insert a fragment into the current section that will be encoded
// later.
- FixedSizePortion = MCCtx->allocateString(FixedSizePortion);
- auto Pos = DefRangeStorage.size();
- llvm::append_range(DefRangeStorage, Ranges);
- if (!Ranges.empty())
- Ranges = {&DefRangeStorage[Pos], Ranges.size()};
auto *F =
MCCtx->allocFragment<MCCVDefRangeFragment>(Ranges, FixedSizePortion);
OS.insert(F);