Skip to content

Commit d11b8a7

Browse files
committed
[LLVMSupport] Remove raw_ostream.h and drop dependencies to it from the runtime
1 parent 64e46af commit d11b8a7

File tree

3 files changed

+3
-744
lines changed

3 files changed

+3
-744
lines changed

include/swift/AST/Decl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ enum class AssociatedValueCheck {
207207
/// Diagnostic printing of \c StaticSpellingKind.
208208
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, StaticSpellingKind SSK);
209209

210+
/// Diagnostic printing of \c ReferenceOwnership.
211+
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, ReferenceOwnership RO);
212+
210213
/// Encapsulation of the overload signature of a given declaration,
211214
/// which is used to determine uniqueness of a declaration within a
212215
/// given context.

include/swift/AST/Ownership.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "llvm/ADT/StringRef.h"
2424
#include "llvm/Support/Compiler.h"
2525
#include "llvm/Support/ErrorHandling.h"
26-
#include "llvm/Support/raw_ostream.h"
2726
#include <assert.h>
2827
#include <limits.h>
2928
#include <stdint.h>
@@ -118,9 +117,6 @@ optionalityOf(ReferenceOwnership ownership) {
118117
llvm_unreachable("impossible");
119118
}
120119

121-
/// Diagnostic printing of \c StaticSpellingKind.
122-
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, ReferenceOwnership RO);
123-
124120
/// Different kinds of value ownership supported by Swift.
125121
enum class ValueOwnership : uint8_t {
126122
/// the context-dependent default ownership (sometimes shared,

0 commit comments

Comments
 (0)