[PATCH] D32777: Remap metadata attached to global variables.
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 08:58:05 PDT 2017
aprantl added a comment.
> I'm not sure if globals are still reachable via !dbg, but it certainly used to be possible. Adrian, do you know the current state?
I'm not sure I understand your question:
Global variables can either be described as !dbg attachments to globals:
@a = global i32, !dbg !0
!0 = !DIGlobalVariableExpression(var: DIGlobalVariable(name: "a"...))
or via a DICompileUnit:
!0 = DICompileUnit(..., globals: !{!1})
!1 = !DIGlobalVariableExpression(var: DIGlobalVariable(name: "my_const", expr: DIExpression(DW_OP_constu, 23)))
LLVM globals cannot be referenced from metadata any more if that is what you meant.
Repository:
rL LLVM
https://reviews.llvm.org/D32777
More information about the llvm-commits
mailing list