Skip to content

Commit 4dafb09

Browse files
authored
Revert "Add symbol visibility macros to abi-breaking.h.cmake" (#118464)
Reverts #110898 This change has caused a cyclic module dependency `fatal error: cyclic dependency in module 'LLVM_Utils': LLVM_Utils -> LLVM_Config_ABI_Breaking -> LLVM_Utils`. Reverting for now until we the right fix.
1 parent 0f4dc42 commit 4dafb09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/include/llvm/Config/abi-breaking.h.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#ifndef LLVM_ABI_BREAKING_CHECKS_H
1313
#define LLVM_ABI_BREAKING_CHECKS_H
1414

15-
#include "llvm/Support/Compiler.h"
16-
1715
/* Define to enable checks that alter the LLVM C++ ABI */
1816
#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
1917

@@ -45,12 +43,12 @@
4543
#endif
4644
namespace llvm {
4745
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
48-
LLVM_ABI extern int EnableABIBreakingChecks;
46+
extern int EnableABIBreakingChecks;
4947
LLVM_HIDDEN_VISIBILITY
5048
__attribute__((weak)) int *VerifyEnableABIBreakingChecks =
5149
&EnableABIBreakingChecks;
5250
#else
53-
LLVM_ABI extern int DisableABIBreakingChecks;
51+
extern int DisableABIBreakingChecks;
5452
LLVM_HIDDEN_VISIBILITY
5553
__attribute__((weak)) int *VerifyDisableABIBreakingChecks =
5654
&DisableABIBreakingChecks;

0 commit comments

Comments
 (0)