diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-01-22 11:05:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 11:05:27 +0000 |
commit | 6aeb7a71d40faed14820523b5be24ff93a4e9bf9 (patch) | |
tree | a87a97178f5469a97b839ce998986c471f7de289 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | c4fc563b8d41c28f3e4cbcd4ef943c26d234b5ae (diff) | |
download | llvm-6aeb7a71d40faed14820523b5be24ff93a4e9bf9.zip llvm-6aeb7a71d40faed14820523b5be24ff93a4e9bf9.tar.gz llvm-6aeb7a71d40faed14820523b5be24ff93a4e9bf9.tar.bz2 |
[RemoveDIs][DebugInfo] Add interface changes for AT analysis (#78460)
This patch adds the preliminary changes for handling DPValues in
AssignmentTrackingAnalysis - very few functional changes are included,
but internal data structures have been changed to operate with DPValues
as well as Instructions, allowing future patches to process DPValues
correctly.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index d1b42f2..2a1ac85 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1724,20 +1724,6 @@ void llvm::ConvertDebugDeclareToDebugValue(DbgVariableIntrinsic *DII, SI->getIterator()); } -namespace llvm { -// RemoveDIs: duplicate the getDebugValueLoc method using DPValues instead of -// dbg.value intrinsics. In llvm namespace so that it overloads the -// DbgVariableIntrinsic version. -static DebugLoc getDebugValueLoc(DPValue *DPV) { - // Original dbg.declare must have a location. - const DebugLoc &DeclareLoc = DPV->getDebugLoc(); - MDNode *Scope = DeclareLoc.getScope(); - DILocation *InlinedAt = DeclareLoc.getInlinedAt(); - // Produce an unknown location with the correct scope / inlinedAt fields. - return DILocation::get(DPV->getContext(), 0, 0, Scope, InlinedAt); -} -} // namespace llvm - /// Inserts a llvm.dbg.value intrinsic before a load of an alloca'd value /// that has an associated llvm.dbg.declare intrinsic. void llvm::ConvertDebugDeclareToDebugValue(DbgVariableIntrinsic *DII, |