[llvm-dev] Functions without names

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Sun Dec 20 19:36:50 PST 2015


I'm trying to print the names of some functions for debugging purposes, but
they don't seem to have any. That is,

define i32 @main() #0 {

getName returns "main" as expected. But

define void @"\01?f@@YAXPEAN at Z"(double* nocapture %a) #0 {

getName returns blank, and hasName returns false. I've tried delving
through the code for class Function, and I can't find anything that would
explain this. What am I missing, and how do I get the name? Either the
mangled or un-mangled version would suffice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151221/c27c99c3/attachment.html>


More information about the llvm-dev mailing list