JITLinkDylib.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- JITLinkDylib.h - JITLink Dylib type ---------------------*- 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 the JITLinkDylib API.
  15. //
  16. //===----------------------------------------------------------------------===//
  17. #ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H
  18. #define LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H
  19. #include <string>
  20. namespace llvm {
  21. namespace jitlink {
  22. class JITLinkDylib {
  23. public:
  24. JITLinkDylib(std::string Name) : Name(std::move(Name)) {}
  25. /// Get the name for this JITLinkDylib.
  26. const std::string &getName() const { return Name; }
  27. private:
  28. std::string Name;
  29. };
  30. } // end namespace jitlink
  31. } // end namespace llvm
  32. #endif // LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H
  33. #ifdef __GNUC__
  34. #pragma GCC diagnostic pop
  35. #endif