Skip to content

Commit cdbf07c

Browse files
committed
[llvm] annotate LLVMCloneModule implementation for export
1 parent b8bda9d commit cdbf07c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Utils/CloneModule.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include "llvm/IR/Module.h"
1616
#include "llvm/Transforms/Utils/Cloning.h"
1717
#include "llvm/Transforms/Utils/ValueMapper.h"
18+
#include "llvm/Support/Compiler.h"
19+
1820
using namespace llvm;
1921

2022
namespace llvm {
@@ -216,7 +218,7 @@ std::unique_ptr<Module> llvm::CloneModule(
216218

217219
extern "C" {
218220

219-
LLVMModuleRef LLVMCloneModule(LLVMModuleRef M) {
221+
LLVM_ABI LLVMModuleRef LLVMCloneModule(LLVMModuleRef M) {
220222
return wrap(CloneModule(*unwrap(M)).release());
221223
}
222224

0 commit comments

Comments
 (0)