aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/DebugInfoTest.cpp
diff options
context:
space:
mode:
authorAugusto Noronha <augusto2112@me.com>2024-05-08 15:51:46 -0700
committerGitHub <noreply@github.com>2024-05-08 15:51:46 -0700
commit99052c4bdf9593a2e648f2c99cabaab36580898c (patch)
tree3f59c650e667ed68d5761fc7e3a670d5d2a0aec3 /llvm/unittests/IR/DebugInfoTest.cpp
parent64f4ceb09ec3559368dd775330184b5259531cd3 (diff)
downloadllvm-99052c4bdf9593a2e648f2c99cabaab36580898c.zip
llvm-99052c4bdf9593a2e648f2c99cabaab36580898c.tar.gz
llvm-99052c4bdf9593a2e648f2c99cabaab36580898c.tar.bz2
[gardening][DebugInfo][NFC] Improve comment on HashingDISubprogram test (#91543)
Diffstat (limited to 'llvm/unittests/IR/DebugInfoTest.cpp')
-rw-r--r--llvm/unittests/IR/DebugInfoTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp
index 8847a57..cac8acb 100644
--- a/llvm/unittests/IR/DebugInfoTest.cpp
+++ b/llvm/unittests/IR/DebugInfoTest.cpp
@@ -1195,8 +1195,9 @@ TEST(MetadataTest, DbgVariableRecordConversionRoutines) {
UseNewDbgInfoFormat = OldDbgValueMode;
}
-// Test that the hashing function for DISubprograms produce the same result
-// after replacing the temporary scope.
+// Test that the hashing function for DISubprograms representing methods produce
+// the same result after replacing their scope (the type containing the
+// subprogram) from a temporary DIType with the permanent one.
TEST(DIBuilder, HashingDISubprogram) {
LLVMContext Ctx;
std::unique_ptr<Module> M = std::make_unique<Module>("MyModule", Ctx);