[llvm] 99052c4 - [gardening][DebugInfo][NFC] Improve comment on HashingDISubprogram test (#91543)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 15:51:48 PDT 2024


Author: Augusto Noronha
Date: 2024-05-08T15:51:46-07:00
New Revision: 99052c4bdf9593a2e648f2c99cabaab36580898c

URL: https://github.com/llvm/llvm-project/commit/99052c4bdf9593a2e648f2c99cabaab36580898c
DIFF: https://github.com/llvm/llvm-project/commit/99052c4bdf9593a2e648f2c99cabaab36580898c.diff

LOG: [gardening][DebugInfo][NFC] Improve comment on HashingDISubprogram test (#91543)

Added: 
    

Modified: 
    llvm/unittests/IR/DebugInfoTest.cpp

Removed: 
    


################################################################################
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