Like title said, I want to set conditional break in some pass for specific function,
I can use ‘current_function_name()’ in GCC to do that, which way is preferred in LLVM ?
You should be able to do
if (F.getName() == "foo") {
// Do stuff.
}
Everything that inherits public member functions from Value
(Function
, BasicBlock
, etc.) has a getName()
function. Documentation here.
Thanks so much