(original) (raw)

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@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@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