diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-08-19 13:44:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-19 13:44:25 +0100 |
commit | da45b6c71d417882f930703c6f9d245fb5968aeb (patch) | |
tree | 447d85d80f574d635bef91f0b38345569d03aad3 /llvm/lib/IR/DebugInfo.cpp | |
parent | b4c31dc98dfc929728904cd96f0f4cf812c4d5b5 (diff) | |
download | llvm-da45b6c71d417882f930703c6f9d245fb5968aeb.zip llvm-da45b6c71d417882f930703c6f9d245fb5968aeb.tar.gz llvm-da45b6c71d417882f930703c6f9d245fb5968aeb.tar.bz2 |
[RemoveDIs][NFC] Remove dbg intrinsic version of calculateFragmentIntersect (#153378)
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index e9425e1..8e523bc 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -1927,12 +1927,9 @@ void at::deleteAll(Function *F) { } } -/// FIXME: Remove this wrapper function and call -/// DIExpression::calculateFragmentIntersect directly. -template <typename T> -bool calculateFragmentIntersectImpl( +bool at::calculateFragmentIntersect( const DataLayout &DL, const Value *Dest, uint64_t SliceOffsetInBits, - uint64_t SliceSizeInBits, const T *AssignRecord, + uint64_t SliceSizeInBits, const DbgVariableRecord *AssignRecord, std::optional<DIExpression::FragmentInfo> &Result) { // No overlap if this DbgRecord describes a killed location. if (AssignRecord->isKillAddress()) @@ -1961,26 +1958,6 @@ bool calculateFragmentIntersectImpl( BitExtractOffsetInBits, VarFrag, Result, OffsetFromLocationInBits); } -/// FIXME: Remove this wrapper function and call -/// DIExpression::calculateFragmentIntersect directly. -bool at::calculateFragmentIntersect( - const DataLayout &DL, const Value *Dest, uint64_t SliceOffsetInBits, - uint64_t SliceSizeInBits, const DbgAssignIntrinsic *DbgAssign, - std::optional<DIExpression::FragmentInfo> &Result) { - return calculateFragmentIntersectImpl(DL, Dest, SliceOffsetInBits, - SliceSizeInBits, DbgAssign, Result); -} - -/// FIXME: Remove this wrapper function and call -/// DIExpression::calculateFragmentIntersect directly. -bool at::calculateFragmentIntersect( - const DataLayout &DL, const Value *Dest, uint64_t SliceOffsetInBits, - uint64_t SliceSizeInBits, const DbgVariableRecord *DVRAssign, - std::optional<DIExpression::FragmentInfo> &Result) { - return calculateFragmentIntersectImpl(DL, Dest, SliceOffsetInBits, - SliceSizeInBits, DVRAssign, Result); -} - /// Update inlined instructions' DIAssignID metadata. We need to do this /// otherwise a function inlined more than once into the same function /// will cause DIAssignID to be shared by many instructions. |