[llvm] [gardening][DebugInfo][NFC] Improve comment on HashingDISubprogram test (PR #91543)
Augusto Noronha via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 15:25:52 PDT 2024
https://github.com/augusto2112 created https://github.com/llvm/llvm-project/pull/91543
None
>From b4fbe5e1432c57a6f659a8186b716772e906d22a Mon Sep 17 00:00:00 2001
From: Augusto Noronha <anoronha at apple.com>
Date: Wed, 8 May 2024 15:24:04 -0700
Subject: [PATCH] [gardening][DebugInfo][NFC] Improve comment on
HashingDISubprogram test
---
llvm/unittests/IR/DebugInfoTest.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp
index 8847a5759ad9f..cac8acbe15a79 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);
More information about the llvm-commits
mailing list