Extracting function name from the gimple call statement

Shubham Narlawar gsocshubham@gmail.com
Sun Oct 10 17:34:01 GMT 2021


Hello,

Is there a direct way to print the name of the function call in gimple call
statement?

For example -

void bar() {
a = foo();        //gimple* stmt
}

I want to print "foo" from the above gimple*.

I traced debug_gimple_stmt(gimple*) but it seems complex to just print
"foo".


Thanks and Regards,
Shubham


More information about the Gcc mailing list