Use function attribute "trap-func-name" and remove TargetOptions::TrapFuncName.