Util.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- Util.h - Common Driver Utilities -----------------------*- 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_UTIL_H
  14. #define LLVM_CLANG_DRIVER_UTIL_H
  15. #include "clang/Basic/LLVM.h"
  16. #include "llvm/ADT/DenseMap.h"
  17. namespace clang {
  18. namespace driver {
  19. class Action;
  20. class JobAction;
  21. /// ArgStringMap - Type used to map a JobAction to its result file.
  22. typedef llvm::DenseMap<const JobAction*, const char*> ArgStringMap;
  23. /// ActionList - Type used for lists of actions.
  24. typedef SmallVector<Action*, 3> ActionList;
  25. } // end namespace driver
  26. } // end namespace clang
  27. #endif
  28. #ifdef __GNUC__
  29. #pragma GCC diagnostic pop
  30. #endif