Skip to content

Commit e276653

Browse files
committed
DLLExport llvm::allocate_buffer and llvm::deallocate_buffer
1 parent 8337d01 commit e276653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/Support/MemAlloc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_realloc(void *Ptr, size_t Sz) {
7171
/// like posix_memalign due to portability. It is mostly intended to allow
7272
/// compatibility with platforms that, after aligned allocation was added, use
7373
/// reduced default alignment.
74-
LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void *
74+
LLVM_ABI LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void *
7575
allocate_buffer(size_t Size, size_t Alignment);
7676

7777
/// Deallocate a buffer of memory with the given size and alignment.
@@ -81,6 +81,7 @@ allocate_buffer(size_t Size, size_t Alignment);
8181
///
8282
/// The pointer must have been allocated with the corresponding new operator,
8383
/// most likely using the above helper.
84+
LLVM_ABI
8485
void deallocate_buffer(void *Ptr, size_t Size, size_t Alignment);
8586

8687
} // namespace llvm

0 commit comments

Comments
 (0)