Skip to content

Commit 9f7847a

Browse files
committed
Address review comments
1 parent 1262e33 commit 9f7847a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

llvm/docs/ReleaseNotes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ Changes to the Metadata Info
170170
Changes to the Debug Info
171171
---------------------------------
172172

173+
* LLVM has switched from using debug intrinsics internally to using debug
174+
records. This should happen transparently when using the DIBuilder to
175+
construct debug variable information, but will require changes for any code
176+
that interacts with debug intrinsics directly; for more information, see
177+
https://llvm.org/docs/RemoveDIsDebugInfo.html.
178+
173179
Changes to the LLVM tools
174180
---------------------------------
175181
* llvm-nm and llvm-objdump can now print symbol information from linked

llvm/unittests/IR/DebugInfoTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,9 @@ TEST(MetadataTest, ConvertDbgToDbgVariableRecord) {
10441044
TEST(MetadataTest, DbgVariableRecordConversionRoutines) {
10451045
LLVMContext C;
10461046

1047+
bool OldDbgValueMode = UseNewDbgInfoFormat;
1048+
UseNewDbgInfoFormat = false;
1049+
10471050
std::unique_ptr<Module> M = parseIR(C, R"(
10481051
define i16 @f(i16 %a) !dbg !6 {
10491052
call void @llvm.dbg.value(metadata i16 %a, metadata !9, metadata !DIExpression()), !dbg !11
@@ -1182,7 +1185,7 @@ TEST(MetadataTest, DbgVariableRecordConversionRoutines) {
11821185
EXPECT_EQ(DVI2->getVariable(), DLV2);
11831186
EXPECT_EQ(DVI2->getExpression(), Expr2);
11841187

1185-
UseNewDbgInfoFormat = false;
1188+
UseNewDbgInfoFormat = OldDbgValueMode;
11861189
}
11871190

11881191
} // end namespace

0 commit comments

Comments
 (0)