support -pg, we never instrument :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70061
91177308-0d34-0410-b5e6-
96231b3b80d8
AT_mode,
AT_nodebug,
AT_noinline,
+ AT_no_instrument_function,
AT_nonnull,
AT_noreturn,
AT_nothrow,
case 22:
if (!memcmp(Str, "objc_ownership_returns", 22))
return AT_objc_ownership_returns;
+ if (!memcmp(Str, "no_instrument_function", 22))
+ return AT_no_instrument_function;
break;
}
return UnknownAttribute;
case AttributeList::AT_noinline: HandleNoinlineAttr (D, Attr, S); break;
case AttributeList::AT_regparm: HandleRegparmAttr (D, Attr, S); break;
case AttributeList::IgnoredAttribute:
+ case AttributeList::AT_no_instrument_function: // Interacts with -pg.
// Just ignore
break;
default: