Skip to content

Commit 4fc0419

Browse files
authored
Merge pull request swiftlang#31634 from compnerd/no-support-structure
runtime: remove `llvm/Support` header usage
2 parents a88bd15 + 04eeff5 commit 4fc0419

File tree

13 files changed

+4
-20
lines changed

13 files changed

+4
-20
lines changed

stdlib/public/SwiftShims/RefCount.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ typedef InlineRefCountsPlaceholder InlineRefCounts;
3333
#include <stdint.h>
3434
#include <assert.h>
3535

36-
#include "llvm/Support/Compiler.h"
3736
#include "swift/Basic/type_traits.h"
3837
#include "swift/Runtime/Atomic.h"
3938
#include "swift/Runtime/Config.h"

stdlib/public/runtime/Casting.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "swift/Runtime/Unreachable.h"
4040
#include "llvm/ADT/DenseMap.h"
4141
#include "llvm/ADT/PointerIntPair.h"
42-
#include "llvm/Support/Compiler.h"
4342
#if SWIFT_OBJC_INTEROP
4443
#include "swift/Runtime/ObjCBridge.h"
4544
#include "SwiftObject.h"

stdlib/public/runtime/Enum.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#include "llvm/Support/ErrorHandling.h"
18-
#include "llvm/Support/MathExtras.h"
1917
#include "swift/Runtime/Metadata.h"
2018
#include "swift/Runtime/Enum.h"
2119
#include "swift/Runtime/Debug.h"

stdlib/public/runtime/ErrorObject.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include "swift/Runtime/HeapObject.h"
2929
#include "SwiftHashableSupport.h"
3030

31-
#include "llvm/Support/Compiler.h"
32-
3331
#include <atomic>
3432
#if SWIFT_OBJC_INTEROP
3533
# include <CoreFoundation/CoreFoundation.h>

stdlib/public/runtime/HeapObject.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "swift/Runtime/Metadata.h"
2121
#include "swift/Runtime/Once.h"
2222
#include "swift/ABI/System.h"
23-
#include "llvm/Support/Compiler.h"
24-
#include "llvm/Support/MathExtras.h"
2523
#include "MetadataCache.h"
2624
#include "Private.h"
2725
#include "RuntimeInvocationsTracking.h"

stdlib/public/runtime/Leaks.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
#include "../SwiftShims/Visibility.h"
2525

26-
#include "llvm/Support/Compiler.h"
2726
#include "swift/Runtime/Config.h"
2827

2928
namespace swift {

stdlib/public/runtime/Metadata.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "swift/Runtime/Mutex.h"
2828
#include "swift/Runtime/Once.h"
2929
#include "swift/Strings.h"
30-
#include "llvm/Support/MathExtras.h"
31-
#include "llvm/Support/PointerLikeTypeTraits.h"
3230
#include <algorithm>
3331
#include <cctype>
3432
#include <cinttypes>

stdlib/public/runtime/MetadataImpl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#ifndef SWIFT_RUNTIME_METADATAIMPL_H
4141
#define SWIFT_RUNTIME_METADATAIMPL_H
4242

43-
#include "llvm/Support/Compiler.h"
4443
#include "swift/Runtime/Config.h"
4544
#include "swift/Runtime/Metadata.h"
4645
#include "swift/Runtime/HeapObject.h"

stdlib/public/runtime/Private.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "swift/Demangling/Demangler.h"
2121
#include "swift/Runtime/Config.h"
2222
#include "swift/Runtime/Metadata.h"
23-
#include "llvm/Support/Compiler.h"
2423

2524
#if defined(__APPLE__) && defined(__MACH__)
2625
#include <TargetConditionals.h>

stdlib/public/runtime/ReflectionMirror.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "swift/Runtime/Portability.h"
2424
#include "Private.h"
2525
#include "WeakReference.h"
26-
#include "llvm/Support/Compiler.h"
2726
#include <cassert>
2827
#include <cinttypes>
2928
#include <cstdio>

0 commit comments

Comments
 (0)