[llvm] 6d84383 - [JITLink] Hook up prebuilt cache in DWARFRecordSectionSplitter::processBlock.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 15:03:21 PDT 2022
Author: Lang Hames
Date: 2022-07-19T15:03:14-07:00
New Revision: 6d8438314fa69f8c978a710c6ef1304bfe9c3451
URL: https://github.com/llvm/llvm-project/commit/6d8438314fa69f8c978a710c6ef1304bfe9c3451
DIFF: https://github.com/llvm/llvm-project/commit/6d8438314fa69f8c978a710c6ef1304bfe9c3451.diff
LOG: [JITLink] Hook up prebuilt cache in DWARFRecordSectionSplitter::processBlock.
DWARFRecordSectionSplitter pre-builds a splitBlock cache, but wasn't passing it
to the call to splitBlock. This was an oversight in the original patch.
Added:
Modified:
llvm/lib/ExecutionEngine/JITLink/DWARFRecordSectionSplitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/JITLink/DWARFRecordSectionSplitter.cpp b/llvm/lib/ExecutionEngine/JITLink/DWARFRecordSectionSplitter.cpp
index 0fc366bf505f1..2a60d8206f630 100644
--- a/llvm/lib/ExecutionEngine/JITLink/DWARFRecordSectionSplitter.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/DWARFRecordSectionSplitter.cpp
@@ -107,7 +107,7 @@ Error DWARFRecordSectionSplitter::processBlock(
}
uint64_t BlockSize = BlockReader.getOffset() - RecordStartOffset;
- auto &NewBlock = G.splitBlock(B, BlockSize);
+ auto &NewBlock = G.splitBlock(B, BlockSize, &Cache);
(void)NewBlock;
LLVM_DEBUG(dbgs() << " Extracted " << NewBlock << "\n");
}
More information about the llvm-commits
mailing list