Skip to content

Commit 5565d36

Browse files
committed
Revert "Forward declare Optional<T> in STLExtras.h"
This reverts commit a36f316. I did not intend to push this with the InitializePasses.h change.
1 parent 05da2fe commit 5565d36

File tree

11 files changed

+4
-14
lines changed

11 files changed

+4
-14
lines changed

lldb/include/lldb/Utility/UserIDResolver.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLDB_UTILITY_USERIDRESOLVER_H
1111

1212
#include "llvm/ADT/DenseMap.h"
13-
#include "llvm/ADT/Optional.h"
1413
#include "llvm/ADT/StringRef.h"
1514
#include <mutex>
1615

llvm/include/llvm/ADT/STLExtras.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#ifndef LLVM_ADT_STLEXTRAS_H
1717
#define LLVM_ADT_STLEXTRAS_H
1818

19+
#include "llvm/ADT/Optional.h"
20+
#include "llvm/ADT/SmallVector.h"
1921
#include "llvm/ADT/iterator.h"
2022
#include "llvm/ADT/iterator_range.h"
2123
#include "llvm/Config/abi-breaking.h"
@@ -40,9 +42,6 @@
4042

4143
namespace llvm {
4244

43-
template <typename T> class Optional;
44-
template <typename T, unsigned N> class SmallVector;
45-
4645
// Only used by compiler if both template types are the same. Useful when
4746
// using SFINAE to test for the existence of member functions.
4847
template <typename T, T> struct SameType;

llvm/include/llvm/ADT/StringSwitch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#ifndef LLVM_ADT_STRINGSWITCH_H
1313
#define LLVM_ADT_STRINGSWITCH_H
1414

15-
#include "llvm/ADT/Optional.h"
1615
#include "llvm/ADT/StringRef.h"
1716
#include "llvm/Support/Compiler.h"
1817
#include <cassert>

llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
#define LLVM_DEBUGINFO_DWARF_DWARFDEBUGFRAME_H
1111

1212
#include "llvm/ADT/ArrayRef.h"
13-
#include "llvm/ADT/Optional.h"
13+
#include "llvm/ADT/iterator.h"
1414
#include "llvm/ADT/SmallString.h"
1515
#include "llvm/ADT/Triple.h"
16-
#include "llvm/ADT/iterator.h"
1716
#include "llvm/DebugInfo/DWARF/DWARFDataExtractor.h"
1817
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
1918
#include "llvm/Support/Error.h"

llvm/include/llvm/Support/CachePruning.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef LLVM_SUPPORT_CACHE_PRUNING_H
1515
#define LLVM_SUPPORT_CACHE_PRUNING_H
1616

17-
#include "llvm/ADT/Optional.h"
1817
#include "llvm/ADT/StringRef.h"
1918
#include <chrono>
2019

llvm/include/llvm/Support/Error.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#define LLVM_SUPPORT_ERROR_H
1515

1616
#include "llvm-c/Error.h"
17-
#include "llvm/ADT/Optional.h"
1817
#include "llvm/ADT/STLExtras.h"
1918
#include "llvm/ADT/SmallVector.h"
2019
#include "llvm/ADT/StringExtras.h"

llvm/include/llvm/Support/Format.h

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

2525
#include "llvm/ADT/ArrayRef.h"
26-
#include "llvm/ADT/Optional.h"
2726
#include "llvm/ADT/STLExtras.h"
2827
#include "llvm/ADT/StringRef.h"
2928
#include "llvm/Support/DataTypes.h"

llvm/include/llvm/Support/Threading.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define LLVM_SUPPORT_THREADING_H
1616

1717
#include "llvm/ADT/FunctionExtras.h"
18-
#include "llvm/ADT/Optional.h"
1918
#include "llvm/ADT/SmallVector.h"
2019
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
2120
#include "llvm/Support/Compiler.h"

llvm/lib/MC/MCInstrAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "llvm/MC/MCInstrAnalysis.h"
10+
1011
#include "llvm/ADT/APInt.h"
11-
#include "llvm/ADT/Optional.h"
1212
#include "llvm/MC/MCInst.h"
1313
#include "llvm/MC/MCInstrDesc.h"
1414
#include "llvm/MC/MCInstrInfo.h"

llvm/lib/Support/CrashRecoveryContext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "llvm/Support/CrashRecoveryContext.h"
10-
#include "llvm/ADT/Optional.h"
1110
#include "llvm/Config/llvm-config.h"
1211
#include "llvm/Support/ErrorHandling.h"
1312
#include "llvm/Support/ManagedStatic.h"

llvm/lib/Support/DJB.cpp

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

1313
#include "llvm/Support/DJB.h"
1414
#include "llvm/ADT/ArrayRef.h"
15-
#include "llvm/ADT/Optional.h"
1615
#include "llvm/Support/Compiler.h"
1716
#include "llvm/Support/ConvertUTF.h"
1817
#include "llvm/Support/Unicode.h"

0 commit comments

Comments
 (0)