Skip to content

Commit 7162f19

Browse files
authored
[llvm] ensure DEMANGLE_ABI is properly defined (#151023)
## Overview Include `llvm-config.h` from `DemangleConfig.h` so `LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS` is defined correctly. The presence of this definition controls the definition of `LLVM_ABI` on Windows DLL builds. This include was missed in #147564. ## Background This effort is tracked in #109483. Additional context is provided in [this discourse](https://discourse.llvm.org/t/psa-annotating-llvm-public-interface/85307).
1 parent 21836f4 commit 7162f19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/Demangle/DemangleConfig.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#ifndef LLVM_DEMANGLE_DEMANGLECONFIG_H
1616
#define LLVM_DEMANGLE_DEMANGLECONFIG_H
1717

18+
// llvm-config.h is required for LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS
19+
#include "llvm/Config/llvm-config.h"
20+
1821
#ifndef __has_feature
1922
#define __has_feature(x) 0
2023
#endif

0 commit comments

Comments
 (0)