1 //===-- JITLinkDylib.h - JITLink Dylib type ---------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // Defines the JITLinkDylib API. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H 14 #define LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H 15 16 #include <string> 17 18 namespace llvm { 19 namespace jitlink { 20 21 class JITLinkDylib { 22 public: 23 JITLinkDylib(std::string Name) : Name(std::move(Name)) {} 24 25 /// Get the name for this JITLinkDylib. 26 const std::string &getName() const { return Name; } 27 28 private: 29 std::string Name; 30 }; 31 32 } // end namespace jitlink 33 } // end namespace llvm 34 35 #endif // LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H 36