Phases.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- Phases.h - Transformations on Driver Types -------------*- 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. #ifndef LLVM_CLANG_DRIVER_PHASES_H
  14. #define LLVM_CLANG_DRIVER_PHASES_H
  15. namespace clang {
  16. namespace driver {
  17. namespace phases {
  18. /// ID - Ordered values for successive stages in the
  19. /// compilation process which interact with user options.
  20. enum ID {
  21. Preprocess,
  22. Precompile,
  23. Compile,
  24. Backend,
  25. Assemble,
  26. Link,
  27. IfsMerge,
  28. };
  29. enum {
  30. MaxNumberOfPhases = IfsMerge + 1
  31. };
  32. const char *getPhaseName(ID Id);
  33. } // end namespace phases
  34. } // end namespace driver
  35. } // end namespace clang
  36. #endif
  37. #ifdef __GNUC__
  38. #pragma GCC diagnostic pop
  39. #endif