|
167 | 167 | /// for both functions and classes. On windows its turned in to dllimport for |
168 | 168 | /// library consumers, for other platforms its a default visibility attribute. |
169 | 169 | /// |
170 | | -/// LLVM_FRIEND_ABI is for annotating friend function declarations when the |
| 170 | +/// LLVM_ABI_FRIEND is for annotating friend function declarations when the |
171 | 171 | /// target function's original declaration is annotated with LLVM_ABI. This |
172 | 172 | /// macro matches the LLVM_ABI macro on Windows, on other platforms it does |
173 | 173 | /// nothing. |
|
188 | 188 | // missing symbol linker errors on windows. |
189 | 189 | #if defined(LLVM_BUILD_STATIC) |
190 | 190 | #define LLVM_ABI |
191 | | -#define LLVM_FRIEND_ABI |
| 191 | +#define LLVM_ABI_FRIEND |
192 | 192 | #define LLVM_TEMPLATE_ABI |
193 | 193 | #define LLVM_EXPORT_TEMPLATE |
194 | 194 | #define LLVM_ABI_EXPORT |
|
202 | 202 | #define LLVM_TEMPLATE_ABI __declspec(dllimport) |
203 | 203 | #define LLVM_EXPORT_TEMPLATE |
204 | 204 | #endif |
205 | | -#define LLVM_FRIEND_ABI LLVM_ABI |
| 205 | +#define LLVM_ABI_FRIEND LLVM_ABI |
206 | 206 | #define LLVM_ABI_EXPORT __declspec(dllexport) |
207 | 207 | #elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \ |
208 | 208 | defined(__MVS__) |
209 | 209 | #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT |
210 | | -#define LLVM_FRIEND_ABI |
| 210 | +#define LLVM_ABI_FRIEND |
211 | 211 | #define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT |
212 | 212 | #define LLVM_EXPORT_TEMPLATE |
213 | 213 | #define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT |
214 | 214 | #elif defined(__MACH__) || defined(__WASM__) || defined(__EMSCRIPTEN__) |
215 | 215 | #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT |
216 | | -#define LLVM_FRIEND_ABI |
| 216 | +#define LLVM_ABI_FRIEND |
217 | 217 | #define LLVM_TEMPLATE_ABI |
218 | 218 | #define LLVM_EXPORT_TEMPLATE |
219 | 219 | #define LLVM_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT |
220 | 220 | #endif |
221 | 221 | #else |
222 | 222 | #define LLVM_ABI |
223 | | -#define LLVM_FRIEND_ABI |
| 223 | +#define LLVM_ABI_FRIEND |
224 | 224 | #define LLVM_TEMPLATE_ABI |
225 | 225 | #define LLVM_EXPORT_TEMPLATE |
226 | 226 | #define LLVM_ABI_EXPORT |
|
0 commit comments