Skip to content

Commit fa74df3

Browse files
authored
Revert [llvm] annotate ABIBreakingChecks symbols for DLL export (#147965)
This patch reverts commit 2447540. The change introduced a cyclic dependency: ``` fatal error: cyclic dependency in module 'LLVM_Utils': LLVM_Utils -> LLVM_Config_ABI_Breaking -> LLVM_Utils ``` See failure log at https://green.lab.llvm.org/job/llvm.org/job/clang-stage2-Rthinlto/976/console.
1 parent 4e2efa5 commit fa74df3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

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

15-
// Compiler.h is required for LLVM_ABI definition.
16-
#include "llvm/Support/Compiler.h"
17-
1815
/* Define to enable checks that alter the LLVM C++ ABI */
1916
#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
2017

@@ -46,12 +43,12 @@
4643
#endif
4744
namespace llvm {
4845
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
49-
LLVM_ABI extern int EnableABIBreakingChecks;
46+
extern int EnableABIBreakingChecks;
5047
LLVM_HIDDEN_VISIBILITY
5148
__attribute__((weak)) int *VerifyEnableABIBreakingChecks =
5249
&EnableABIBreakingChecks;
5350
#else
54-
LLVM_ABI extern int DisableABIBreakingChecks;
51+
extern int DisableABIBreakingChecks;
5552
LLVM_HIDDEN_VISIBILITY
5653
__attribute__((weak)) int *VerifyDisableABIBreakingChecks =
5754
&DisableABIBreakingChecks;

0 commit comments

Comments
 (0)