This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] Move the common sanitizer interface from sanitizer_internal_defs.h to a new sanitizer_interface_internal.h file
ClosedPublic

Authored by timurrrr on Feb 19 2015, 6:53 AM.

Details

Reviewers
eugenis
timurrrr
Summary

The rationale for the move is

  1. sanitizer_internal_defs.h is included from asan_dll_thunk.cc, which expects only the minimal amount of declarations. Leaving the __sanitizer functions in sanitizer_internal_defs.h results in extra maintenance cost of asan_dll_thunk.cc (see INTERFACE_FUNCTION macro)
  1. According to the top comment, sanitizer_internal_defs.h is supposed to "contain macro used in run-time libraries code." Clearly, the __sanitizer_* function definitions are not macros. Also, they don't have to be declared in all our TUs.

I'm assigning you to the review as you've added the __sanitizer interface into sanitizer_internal_defs.h in http://llvm.org/viewvc/llvm-project?revision=173928&view=revision

Diff Detail

Event Timeline

timurrrr updated this revision to Diff 20293.Feb 19 2015, 6:53 AM
timurrrr retitled this revision from to [Sanitizers] Move the common sanitizer interface from sanitizer_internal_defs.h to a new sanitizer_interface_internal.h file.
timurrrr updated this object.
timurrrr edited the test plan for this revision. (Show Details)
timurrrr added a reviewer: eugenis.
timurrrr added a subscriber: Unknown Object (MLST).
eugenis accepted this revision.Feb 19 2015, 7:16 AM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Feb 19 2015, 7:16 AM
timurrrr accepted this revision.Feb 19 2015, 7:17 AM
timurrrr added a reviewer: timurrrr.

Thanks!

timurrrr closed this revision.Feb 19 2015, 7:17 AM

r229858.