None of the functions declared in sanitizer_posix.h are needed for the Fuchsia implementation inside hwasan_dynamic_shadow.cpp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Not sure if this is the cleanest approach, but I'll leave it up to the reviewers. This really only affects the fuchsia case which just defines an empty InitShadowGOT.
compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp | ||
---|---|---|
25 ↗ | (On Diff #362456) | I believe we usually do that inside of "sanitizer_common/sanitizer_posix.h" #include "sanitizer_platform.h" #if SANITIZER_POSIX #SANITIZER_POSIX E.g. sanitizer_common/sanitizer_win.h |
Comment Actions
Done. Although before, including this header when SANITIZER_POSIX was 0 would result in the preprocessor error (shown in diff). Will still leave it up in case this changes anything, but will land this after a day or so if no further comments.