LibDriver.h 965 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- llvm-lib/LibDriver.h - lib.exe-compatible driver ---------*- 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. //
  14. // Defines an interface to a lib.exe-compatible driver that also understands
  15. // bitcode files. Used by llvm-lib and lld-link /lib.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_TOOLDRIVERS_LLVM_LIB_LIBDRIVER_H
  19. #define LLVM_TOOLDRIVERS_LLVM_LIB_LIBDRIVER_H
  20. namespace llvm {
  21. template <typename T> class ArrayRef;
  22. int libDriverMain(ArrayRef<const char *> ARgs);
  23. }
  24. #endif
  25. #ifdef __GNUC__
  26. #pragma GCC diagnostic pop
  27. #endif