Russell Wallace via llvm-dev
2015-Dec-21 04:17 UTC
[llvm-dev] Printing the dynamic type of a variable
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>