LLVM: include/llvm/Object/BuildID.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#ifndef LLVM_DEBUGINFO_OBJECT_BUILDID_H
16#define LLVM_DEBUGINFO_OBJECT_BUILDID_H
17
21
22namespace llvm {
24
25
27
28
30
32
33
35
36
38
39
41public:
43 : DebugFileDirectories(std::move(DebugFileDirectories)) {}
45
46
48
49private:
50 const std::vectorstd::string DebugFileDirectories;
51};
52
53}
54}
55
56#endif
This file defines the SmallVector class.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
BuildIDFetcher(std::vector< std::string > DebugFileDirectories)
Definition BuildID.h:42
virtual std::optional< std::string > fetch(BuildIDRef BuildID) const
Returns the path to the debug file with the given build ID.
virtual ~BuildIDFetcher()=default
This class is the base class for all object file types.
SmallVector< uint8_t, 10 > BuildID
A build ID in binary form.
Definition BuildID.h:26
LLVM_ABI BuildIDRef getBuildID(const ObjectFile *Obj)
Returns the build ID, if any, contained in the given object file.
LLVM_ABI BuildID parseBuildID(StringRef Str)
Parses a build ID from a hex string.
ArrayRef< uint8_t > BuildIDRef
A reference to a BuildID in binary form.
Definition BuildID.h:29
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.