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.
This commit is contained in:
Ben Langmuir
2022-02-24 13:47:04 -08:00
parent 5473cec9a2
commit 5a5dd13ca1
6 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
#define SWIFT_ABI_TYPEIDENTITY_H
#include "swift/Basic/LLVM.h"
#include <llvm/ADT/Optional.h>
#include <llvm/ADT/StringRef.h>
namespace swift {

View File

@@ -15,6 +15,7 @@
#include "swift/Basic/StableHasher.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"

View File

@@ -20,6 +20,7 @@
#include "swift/Basic/Debug.h"
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/SMLoc.h"
#include <functional>

View File

@@ -13,6 +13,7 @@
#ifndef SWIFT_BASIC_STATISTIC_H
#define SWIFT_BASIC_STATISTIC_H
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Timer.h"

View File

@@ -13,6 +13,7 @@
#ifndef SWIFT_DEMANGLING_MANGLINGUTILS_H
#define SWIFT_DEMANGLING_MANGLINGUTILS_H
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "swift/Demangling/NamespaceMacros.h"
#include "swift/Demangling/Punycode.h"

View File

@@ -20,6 +20,7 @@
#include "swift/Remote/RemoteAddress.h"
#include "swift/SwiftRemoteMirror/MemoryReaderInterface.h"
#include "llvm/ADT/Optional.h"
#include <cstring>
#include <functional>