[LLVMdev] Obtaining a GlobalVariable from an MDNode (original) (raw)
Peter Finn peterdfinn at icloud.com
Wed Jul 1 14:30:12 PDT 2015
- Previous message: [LLVMdev] Obtaining a GlobalVariable from an MDNode
- Next message: [LLVMdev] Obtaining a GlobalVariable from an MDNode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
DebugInstrumentation.cpp. Line 246 does the following:
if (DIGlobalVariable(*NMD->getOperand(i)).getGlobal() == GV) {
(Where i is an unsigned loop variable and NMD is a NamedMDNode.) Apparently, the compiler rejected the cast from an MDNode (the result of getOperand(i)) to a DIGlobalVariable. Also, it appears that getGlobal() doesn’t exist anymore in the DIGlobalVariable doxygen.
Peter
On Jul 1, 2015, at 5:26 PM, John Criswell <jtcriswel at gmail.com> wrote:
On 7/1/15 4:13 PM, Peter Finn wrote: I’m trying to debug SAFECode source code files, and I need to find a way to obtain a GlobalVariable from its appropriate MDNode. How can I do this? I’ve been looking over the doxygen and I can’t seem to find a way to do this. Which source file does this? I don't recall off-hand where SAFECode does this and why. Regards, John Criswell
Thanks, Peter Finn
LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-- John Criswell Assistant Professor Department of Computer Science, University of Rochester http://www.cs.rochester.edu/u/criswell
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150701/b6b46686/attachment.html>
- Previous message: [LLVMdev] Obtaining a GlobalVariable from an MDNode
- Next message: [LLVMdev] Obtaining a GlobalVariable from an MDNode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]