[all-commits] [llvm/llvm-project] 0f00aa: Add no_instrument_function attribute to Objective ...

Aditya Kumar via All-commits all-commits at lists.llvm.org
Fri Oct 8 17:54:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f00aa502d79acf8a92b0b8490489895a9f28829
      https://github.com/llvm/llvm-project/commit/0f00aa502d79acf8a92b0b8490489895a9f28829
  Author: Aditya Kumar <1894981+hiraditya at users.noreply.github.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    A clang/test/CodeGen/instrument-objc-method.m
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/SemaObjC/attr-noinstrument.m

  Log Message:
  -----------
  Add no_instrument_function attribute to Objective C methods as well

There are functions where we do not want function instrumentation which is why we have `__attribute__((no_instrument_function))`. Extending this functionality to disable instrumentation for Objective-C methods as well. Objective C methods like `+load` run premain and having instrumentation on them causes runtime errors depending on the implementation of `__cyg_profile_func_enter` etc. functions

Reviewed By: rjmccall, aaron.ballman

Differential Revision: https://reviews.llvm.org/D111286




More information about the All-commits mailing list