CFGuard.h 1023 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- CFGuard.h - CFGuard Transformations ---------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===---------------------------------------------------------------------===//
  13. // Windows Control Flow Guard passes (/guard:cf).
  14. //===---------------------------------------------------------------------===//
  15. #ifndef LLVM_TRANSFORMS_CFGUARD_H
  16. #define LLVM_TRANSFORMS_CFGUARD_H
  17. namespace llvm {
  18. class FunctionPass;
  19. /// Insert Control FLow Guard checks on indirect function calls.
  20. FunctionPass *createCFGuardCheckPass();
  21. /// Insert Control FLow Guard dispatches on indirect function calls.
  22. FunctionPass *createCFGuardDispatchPass();
  23. } // namespace llvm
  24. #endif
  25. #ifdef __GNUC__
  26. #pragma GCC diagnostic pop
  27. #endif