Skip to content

Commit 4f2bb31

Browse files
committed
eliminate llvm/Demangle/Visibility.h
1 parent 195f80b commit 4f2bb31

File tree

10 files changed

+9
-51
lines changed

10 files changed

+9
-51
lines changed

libcxxabi/src/demangle/DemangleConfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,6 @@
107107
#define DEMANGLE_NAMESPACE_BEGIN namespace { namespace itanium_demangle {
108108
#define DEMANGLE_NAMESPACE_END } }
109109

110+
#define DEMANGLE_ABI
111+
110112
#endif // LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H

libcxxabi/src/demangle/ItaniumDemangle.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "DemangleConfig.h"
2020
#include "StringViewExtras.h"
2121
#include "Utility.h"
22-
#include "Visibility.h"
2322
#include <algorithm>
2423
#include <cctype>
2524
#include <cstdint>

libcxxabi/src/demangle/Visibility.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

libcxxabi/src/demangle/cp-to-llvm.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22

3-
# Copies the 'demangle' library, excluding 'DemangleConfig.h' and
4-
# 'Visibility.h', to llvm. If no llvm directory is specified, then assume a
5-
# monorepo layout.
3+
# Copies the 'demangle' library, excluding 'DemangleConfig.h', to llvm. If no
4+
# llvm directory is specified, then assume a monorepo layout.
65

76
set -e
87

llvm/include/llvm/Demangle/Demangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef LLVM_DEMANGLE_DEMANGLE_H
1010
#define LLVM_DEMANGLE_DEMANGLE_H
1111

12-
#include "Visibility.h"
12+
#include "DemangleConfig.h"
1313
#include <cstddef>
1414
#include <optional>
1515
#include <string>

llvm/include/llvm/Demangle/DemangleConfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@
3434
#define DEMANGLE_NAMESPACE_BEGIN namespace llvm { namespace itanium_demangle {
3535
#define DEMANGLE_NAMESPACE_END } }
3636

37+
#define DEMANGLE_ABI LLVM_ABI
38+
3739
#endif

llvm/include/llvm/Demangle/ItaniumDemangle.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "DemangleConfig.h"
2020
#include "StringViewExtras.h"
2121
#include "Utility.h"
22-
#include "Visibility.h"
2322
#include <algorithm>
2423
#include <cctype>
2524
#include <cstdint>

llvm/include/llvm/Demangle/MicrosoftDemangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#define LLVM_DEMANGLE_MICROSOFTDEMANGLE_H
1111

1212
#include "llvm/Demangle/Demangle.h"
13+
#include "llvm/Demangle/DemangleConfig.h"
1314
#include "llvm/Demangle/MicrosoftDemangleNodes.h"
14-
#include "llvm/Demangle/Visibility.h"
1515

1616
#include <cassert>
1717
#include <string_view>

llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef LLVM_DEMANGLE_MICROSOFTDEMANGLENODES_H
1414
#define LLVM_DEMANGLE_MICROSOFTDEMANGLENODES_H
1515

16-
#include "Visibility.h"
16+
#include "DemangleConfig.h"
1717
#include <array>
1818
#include <cstdint>
1919
#include <string>

llvm/include/llvm/Demangle/Visibility.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)