diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-03-13 16:39:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 16:39:35 +0000 |
commit | 360da83858655ad8297f3c0467c8c97ebedab5ed (patch) | |
tree | 16413b2309b940779276d3db4576ad22a2259c04 /llvm/unittests/Transforms | |
parent | 69afb9d7875d79fdacaaa2f22b5ee3a06faf5373 (diff) | |
download | llvm-360da83858655ad8297f3c0467c8c97ebedab5ed.zip llvm-360da83858655ad8297f3c0467c8c97ebedab5ed.tar.gz llvm-360da83858655ad8297f3c0467c8c97ebedab5ed.tar.bz2 |
[RemoveDI][NFC] Rename DPValue->DbgRecord in comments and varnames (#84939)
This patch continues the ongoing rename work, replacing DPValue with
DbgRecord in comments and the names of variables, both members and
fn-local. This is the most labour-intensive part of the rename, as it is
where the most decisions have to be made about whether a given comment
or variable is referring to DPValues (equivalent to debug variable
intrinsics) or DbgRecords (a catch-all for all debug intrinsics); these
decisions are not individually difficult, but comprise a fairly large
amount of text to review.
This patch still largely performs basic string substitutions followed by
clang-format; there are almost* no places where, for example, a comment
has been expanded or modified to reflect the semantic difference between
DPValues and DbgRecords. I don't believe such a change is generally
necessary in LLVM, but it may be useful in the docs, and so I'll be
submitting docs changes as a separate patch.
*In a few places, `dbg.values` was replaced with `debug intrinsics`.
Diffstat (limited to 'llvm/unittests/Transforms')
-rw-r--r-- | llvm/unittests/Transforms/Utils/DebugifyTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Utils/DebugifyTest.cpp b/llvm/unittests/Transforms/Utils/DebugifyTest.cpp index 89fa133..0b00734 100644 --- a/llvm/unittests/Transforms/Utils/DebugifyTest.cpp +++ b/llvm/unittests/Transforms/Utils/DebugifyTest.cpp @@ -60,7 +60,7 @@ struct DebugValueDrop : public FunctionPass { for (Instruction &I : BB) { if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I)) Dbgs.push_back(DVI); - // If there are any non-intrinsic records (DPValues), drop those too. + // If there are any non-intrinsic records (DbgRecords), drop those too. I.dropDbgRecords(); } } |