[Mlir-commits] [mlir] [mlir] Add support for DIGlobalVariable and DIGlobalVariableExpression (PR #73367)
Justin Wilson
llvmlistbot at llvm.org
Fri Dec 1 05:40:03 PST 2023
================
@@ -116,6 +116,16 @@ DebugImporter::translateImpl(llvm::DILexicalBlockFile *node) {
node->getDiscriminator());
}
+DIGlobalVariableAttr
+DebugImporter::translateImpl(llvm::DIGlobalVariable *node) {
+ return DIGlobalVariableAttr::get(
+ context, translate(node->getScope()),
+ StringAttr::get(context, node->getName()),
+ StringAttr::get(context, node->getLinkageName()),
----------------
waj334 wrote:
LLVM's own docs showed a case where it was not set (assuming it is correct everywhere)
https://llvm.org/docs/LangRef.html#disubrange
The example there was the only place like that.
https://github.com/llvm/llvm-project/pull/73367
More information about the Mlir-commits
mailing list