This is an archive of the discontinued LLVM Phabricator instance.

[llvm][dfsan][NFC] Factor out fcn initialization
ClosedPublic

Authored by zbrid on May 3 2020, 12:41 PM.

Details

Summary

Moving these function initializations into separate functions makes it easier
to read the runOnModule function. There is also precedent in the sanitizer code:
asan has a function ModuleAddressSanitizer::initializeCallbacks(Module &M). I
thought it made sense to break the initializations into two sets. One for the
compiler runtime functions and one for the event callbacks.

Tested with: check-all

Diff Detail

Event Timeline

zbrid created this revision.May 3 2020, 12:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2020, 12:41 PM
This revision is now accepted and ready to land.May 4 2020, 8:18 AM
This revision was automatically updated to reflect the committed changes.