Skip to content

Commit 85313c8

Browse files
authored
Add CPPINTEROP_API to GetOperator. and GetOperatorArity
1 parent a12e15b commit 85313c8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,7 +3477,7 @@ namespace Cpp {
34773477
return PI->getNameAsString();
34783478
}
34793479

3480-
OperatorArity GetOperatorArity(TCppFunction_t op) {
3480+
CPPINTEROP_API OperatorArity GetOperatorArity(TCppFunction_t op) {
34813481
Decl* D = static_cast<Decl*>(op);
34823482
if (auto* FD = llvm::dyn_cast<FunctionDecl>(D)) {
34833483
if (FD->isOverloadedOperator()) {
@@ -3501,7 +3501,7 @@ namespace Cpp {
35013501
return (OperatorArity)~0U;
35023502
}
35033503

3504-
void GetOperator(TCppScope_t scope, Operator op,
3504+
CPPINTEROP_API void GetOperator(TCppScope_t scope, Operator op,
35053505
std::vector<TCppFunction_t>& operators, OperatorArity kind) {
35063506
Decl* D = static_cast<Decl*>(scope);
35073507
if (auto* DC = llvm::dyn_cast_or_null<DeclContext>(D)) {

lib/Interpreter/exports.ld

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
-Wl,--export=_ZN3Cpp11GetOperatorEPvNS_8OperatorERNSt3__26vectorIS0_NS2_9allocatorIS0_EEEENS_13OperatorArityE
21
-Wl,--export=_ZN4llvm11raw_ostream14flush_nonemptyEv
32
-Wl,--export=_ZN4llvm11raw_ostream16SetBufferAndModeEPcmNS0_10BufferKindE
43
-Wl,--export=_ZN4llvm11raw_ostream5writeEPKcm

0 commit comments

Comments
 (0)