[all-commits] [llvm/llvm-project] 8d8fda: [llvm][dfsan][NFC] Factor out fcn initialization

zbrid via All-commits all-commits at lists.llvm.org
Mon May 4 10:02:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d8fda49c99dcb854d0fb58422f513ae909770cd
      https://github.com/llvm/llvm-project/commit/8d8fda49c99dcb854d0fb58422f513ae909770cd
  Author: Zola Bridges <zbrid at google.com>
  Date:   2020-05-04 (Mon, 04 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

  Log Message:
  -----------
  [llvm][dfsan][NFC] Factor out fcn initialization

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

Reviewed By: morehouse

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




More information about the All-commits mailing list