Functions without names

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