Issue 71794
Summary How can I get GlobalVariable from DIGlobalVariable?
Labels new issue
Assignees
Reporter ash1852
    like title says, I recently is upgrade my tool to be compatable with llvm-15(used be compatable with llvm-3.6.2). In llvm-3.6.2 I can get GlobalVariable by using api DIGlobalVariable::getGlobal, whose codes have been shown below, but in llvm-15.0.0 it was removed. How can I get GlobalVariable from DIGlobalVariable? Can i just cast the forth operand of DIGlobalVariable to GlobalVaribale like that in llvm-3.6..2?
![image](https://github.com/llvm/llvm-project/assets/87304478/4c41a925-e0b0-4856-a002-ddc2517fbf58)
thanks in advance for helping.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to