Skip to content

Commit b781176

Browse files
committed
[llvm] auto-annotate remaining LLVM interfaces for DLL
1 parent 3095d3a commit b781176

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

llvm/include/llvm/ExecutionEngine/Orc/COFF.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef LLVM_EXECUTIONENGINE_ORC_COFF_H
1414
#define LLVM_EXECUTIONENGINE_ORC_COFF_H
1515

16+
#include "llvm/Support/Compiler.h"
1617
#include "llvm/Support/Error.h"
1718
#include "llvm/Support/MemoryBuffer.h"
1819

@@ -31,7 +32,7 @@ class COFFImportFileScanner {
3132
public:
3233
COFFImportFileScanner(std::set<std::string> &ImportedDynamicLibraries)
3334
: ImportedDynamicLibraries(ImportedDynamicLibraries) {}
34-
Expected<bool> operator()(object::Archive &A, MemoryBufferRef MemberBuf,
35+
LLVM_ABI Expected<bool> operator()(object::Archive &A, MemoryBufferRef MemberBuf,
3536
size_t Index) const;
3637

3738
private:

llvm/include/llvm/Frontend/Directive/Spelling.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#ifndef LLVM_FRONTEND_DIRECTIVE_SPELLING_H
99
#define LLVM_FRONTEND_DIRECTIVE_SPELLING_H
1010

11+
#include "llvm/Support/Compiler.h"
1112
#include "llvm/ADT/StringRef.h"
1213
#include "llvm/ADT/iterator_range.h"
1314

@@ -33,7 +34,7 @@ struct Spelling {
3334
VersionRange Versions;
3435
};
3536

36-
StringRef FindName(llvm::iterator_range<const Spelling *>, unsigned Version);
37+
LLVM_ABI StringRef FindName(llvm::iterator_range<const Spelling *>, unsigned Version);
3738

3839
} // namespace llvm::directive
3940

llvm/include/llvm/Frontend/Driver/CodeGenOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum ProfileInstrKind {
6363
};
6464

6565
// Default filename used for profile generation.
66-
std::string getDefaultProfileGenName();
66+
LLVM_ABI std::string getDefaultProfileGenName();
6767
} // end namespace llvm::driver
6868

6969
#endif

llvm/include/llvm/Frontend/HLSL/HLSLRootSignatureUtils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ class ResourceRange {
9797

9898
// Returns a reference to the first RangeInfo that overlaps with
9999
// [Info.LowerBound;Info.UpperBound], or, std::nullopt if there is no overlap
100-
std::optional<const RangeInfo *> getOverlapping(const RangeInfo &Info) const;
100+
LLVM_ABI std::optional<const RangeInfo *> getOverlapping(const RangeInfo &Info) const;
101101

102102
// Return the mapped RangeInfo at X or nullptr if no mapping exists
103-
const RangeInfo *lookup(uint32_t X) const;
103+
LLVM_ABI const RangeInfo *lookup(uint32_t X) const;
104104

105105
// Removes all entries of the ResourceRange
106-
void clear();
106+
LLVM_ABI void clear();
107107

108108
// Insert the required (sub-)intervals such that the interval of [a;b] =
109109
// [Info.LowerBound, Info.UpperBound] is covered and points to a valid
@@ -131,7 +131,7 @@ class ResourceRange {
131131
// Returns a reference to the first RangeInfo that overlaps with
132132
// [Info.LowerBound;Info.UpperBound], or, std::nullopt if there is no overlap
133133
// (equivalent to getOverlapping)
134-
std::optional<const RangeInfo *> insert(const RangeInfo &Info);
134+
LLVM_ABI std::optional<const RangeInfo *> insert(const RangeInfo &Info);
135135
};
136136

137137
} // namespace rootsig

llvm/include/llvm/TargetParser/TargetParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct BasicSubtargetSubTypeKV {
214214
}
215215
};
216216

217-
std::optional<llvm::StringMap<bool>>
217+
LLVM_ABI std::optional<llvm::StringMap<bool>>
218218
getCPUDefaultTargetFeatures(StringRef CPU,
219219
ArrayRef<BasicSubtargetSubTypeKV> ProcDesc,
220220
ArrayRef<BasicSubtargetFeatureKV> ProcFeatures);

0 commit comments

Comments
 (0)