File tree Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -1071,10 +1071,9 @@ if (LLVM_BUILD_LLVM_DYLIB OR LLVM_BUILD_SHARED_LIBS OR LLVM_ENABLE_PLUGINS)
1071
1071
set (LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS ON )
1072
1072
endif ()
1073
1073
1074
- # Because LLVM-C and Demangle libraries are built into the LLVM library, for now
1075
- # we export their symbols if LLVM symbols are exported.
1074
+ # Because LLVM-C is built into the LLVM library, for now export its symbols
1075
+ # whenever LLVM symbols are exported.
1076
1076
set (LLVM_ENABLE_LLVM_C_EXPORT_ANNOTATIONS ${LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS} )
1077
- set (LLVM_ENABLE_DEMANGLE_EXPORT_ANNOTATIONS ${LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS} )
1078
1077
1079
1078
set (LLVM_ENABLE_NEW_PASS_MANAGER TRUE CACHE BOOL
1080
1079
"Enable the new pass manager by default." )
Original file line number Diff line number Diff line change 16
16
#ifndef LLVM_DEMANGLE_VISIBILITY_H
17
17
#define LLVM_DEMANGLE_VISIBILITY_H
18
18
19
- #include " llvm/Config/llvm-config.h"
20
- #include " llvm/Demangle/DemangleConfig.h"
19
+ #include " llvm/Support/Compiler.h"
21
20
22
21
// / DEMANGLE_ABI is the export/visibility macro used to mark symbols delcared in
23
- // / llvm/Demangle as exported when built as a shared library.
24
-
25
- #if !defined(LLVM_ABI_GENERATING_ANNOTATIONS)
26
- #if defined(LLVM_ENABLE_DEMANGLE_EXPORT_ANNOTATIONS) && \
27
- !defined(LLVM_BUILD_STATIC)
28
- #if defined(_WIN32) && !defined(__MINGW32__)
29
- #if defined(LLVM_EXPORTS)
30
- #define DEMANGLE_ABI __declspec (dllexport)
31
- #else
32
- #define DEMANGLE_ABI __declspec (dllimport)
33
- #endif
34
- #elif __has_attribute(visibility)
35
- #define DEMANGLE_ABI __attribute__ ((visibility(" default" )))
36
- #endif
37
- #endif
38
- #if !defined(DEMANGLE_ABI)
39
- #define DEMANGLE_ABI
40
- #endif
41
- #endif
22
+ // / llvm/Demangle as exported when LLVM is built as a shared library.
23
+ #define DEMANGLE_ABI LLVM_ABI
42
24
43
25
#endif
You can’t perform that action at this time.
0 commit comments