[llvm-dev] Printing the dynamic type of a variable

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Sun Dec 20 20:17:35 PST 2015


Is there any way to print the dynamic type of a variable using the custom
RTTI?

That is, suppose you have Value *x, where at runtime x could be pointing to
a constant or an instruction or function or whatever, is there a way to
print what kind of thing it's actually pointing to (without doing a full
'print this whole thing' that might produce a large volume of output e.g.
if it's a function)? Basically just to get some small piece of output to
indicate what you're looking at?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151221/7ea57bb6/attachment.html>


More information about the llvm-dev mailing list