[PATCH] D61710: lld: Add a warning limit, similar to the existing error limit

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 02:40:49 PDT 2019


MaskRay added a comment.

Note, if we go with `__builtin_return_address(2)`, we may have to add `__attribute__((noinline))` to `warn()`. An alternative is to add a macro for warnings, and let it call the underlying `warn()` with `__func__ + __LINE__` (`__FILE__` may leak the path name)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61710/new/

https://reviews.llvm.org/D61710





More information about the llvm-commits mailing list