LLVM  16.0.0git
JITLinkDylib.h
Go to the documentation of this file.
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
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1836
std
Definition: BitVector.h:851