Skip to content

Commit f16babf

Browse files
slinder1bcahoon
authored andcommitted
[HeterogeneousDWARF] Update MLIR DI Metadata handling
Pass a default DW_MSPACE_LLVM_none to satisfy new API Change-Id: I50df461f00b5510a715f55f61107122318102d22
1 parent 555e118 commit f16babf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mlir/lib/Target/LLVMIR/DebugTranslation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ llvm::DIDerivedType *DebugTranslation::translateImpl(DIDerivedTypeAttr attr) {
162162
/*File=*/nullptr, /*Line=*/0,
163163
/*Scope=*/nullptr, translate(attr.getBaseType()), attr.getSizeInBits(),
164164
attr.getAlignInBits(), attr.getOffsetInBits(),
165-
/*DWARFAddressSpace=*/std::nullopt, /*Flags=*/llvm::DINode::FlagZero);
165+
/*DWARFAddressSpace=*/std::nullopt, llvm::dwarf::DW_MSPACE_LLVM_none,
166+
/*Flags=*/llvm::DINode::FlagZero);
166167
}
167168

168169
llvm::DIFile *DebugTranslation::translateImpl(DIFileAttr attr) {
@@ -199,7 +200,8 @@ DebugTranslation::translateImpl(DILocalVariableAttr attr) {
199200
llvmCtx, translate(attr.getScope()), getMDStringOrNull(attr.getName()),
200201
translate(attr.getFile()), attr.getLine(), translate(attr.getType()),
201202
attr.getArg(),
202-
/*Flags=*/llvm::DINode::FlagZero, attr.getAlignInBits(),
203+
/*Flags=*/llvm::DINode::FlagZero, llvm::dwarf::DW_MSPACE_LLVM_none,
204+
attr.getAlignInBits(),
203205
/*Annotations=*/nullptr);
204206
}
205207

0 commit comments

Comments
 (0)