mini-llvm 0.1.0
Loading...
Searching...
No Matches
Compiler.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5#if defined(_WIN32) || defined(__CYGWIN__)
6 #if defined(MINI_LLVM_EXPORTS)
7 #define MINI_LLVM_EXPORT __declspec(dllexport)
8 #elif defined(MINI_LLVM_SHARED)
9 #define MINI_LLVM_EXPORT __declspec(dllimport)
10 #else
11 #define MINI_LLVM_EXPORT
12 #endif
13#else
14 #if defined(MINI_LLVM_EXPORTS)
15 #define MINI_LLVM_EXPORT __attribute__((visibility("default")))
16 #else
17 #define MINI_LLVM_EXPORT
18 #endif
19#endif