Skip to content

Commit 5a5dd13

Browse files
committed
Include what you use: Optional and Hashing
Add a few includes of Optional.h and Hashing.h. These files are failing ot build in the "next" branch due to changes in llvm's own includes, but it's general goodness to include them on main as well.
1 parent 5473cec commit 5a5dd13

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

include/swift/ABI/TypeIdentity.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define SWIFT_ABI_TYPEIDENTITY_H
2020

2121
#include "swift/Basic/LLVM.h"
22+
#include <llvm/ADT/Optional.h>
2223
#include <llvm/ADT/StringRef.h>
2324

2425
namespace swift {

include/swift/Basic/Fingerprint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "swift/Basic/StableHasher.h"
1717
#include "llvm/ADT/Hashing.h"
18+
#include "llvm/ADT/Optional.h"
1819
#include "llvm/ADT/SmallString.h"
1920
#include "llvm/ADT/StringRef.h"
2021

include/swift/Basic/SourceLoc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/Basic/Debug.h"
2121
#include "swift/Basic/LLVM.h"
2222
#include "llvm/ADT/DenseMapInfo.h"
23+
#include "llvm/ADT/Hashing.h"
2324
#include "llvm/ADT/StringRef.h"
2425
#include "llvm/Support/SMLoc.h"
2526
#include <functional>

include/swift/Basic/Statistic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef SWIFT_BASIC_STATISTIC_H
1414
#define SWIFT_BASIC_STATISTIC_H
1515

16+
#include "llvm/ADT/Optional.h"
1617
#include "llvm/ADT/SmallString.h"
1718
#include "llvm/ADT/Statistic.h"
1819
#include "llvm/Support/Timer.h"

include/swift/Demangling/ManglingUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef SWIFT_DEMANGLING_MANGLINGUTILS_H
1414
#define SWIFT_DEMANGLING_MANGLINGUTILS_H
1515

16+
#include "llvm/ADT/Optional.h"
1617
#include "llvm/ADT/StringRef.h"
1718
#include "swift/Demangling/NamespaceMacros.h"
1819
#include "swift/Demangling/Punycode.h"

include/swift/Remote/MemoryReader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "swift/Remote/RemoteAddress.h"
2222
#include "swift/SwiftRemoteMirror/MemoryReaderInterface.h"
23+
#include "llvm/ADT/Optional.h"
2324

2425
#include <cstring>
2526
#include <functional>

0 commit comments

Comments
 (0)