[llvm] a1a72b9 - Drop unused forward declarations of llvm::Optional. NFC.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 14:42:46 PST 2022


Author: Benjamin Kramer
Date: 2022-12-19T23:42:08+01:00
New Revision: a1a72b9d6d23c844d45414bdf956ea30c804ccff

URL: https://github.com/llvm/llvm-project/commit/a1a72b9d6d23c844d45414bdf956ea30c804ccff
DIFF: https://github.com/llvm/llvm-project/commit/a1a72b9d6d23c844d45414bdf956ea30c804ccff.diff

LOG: Drop unused forward declarations of llvm::Optional. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/TargetTransformInfo.h
    llvm/include/llvm/AsmParser/LLParser.h
    llvm/include/llvm/BinaryFormat/Dwarf.h
    llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
    llvm/include/llvm/IR/Function.h
    llvm/include/llvm/Object/Archive.h
    llvm/include/llvm/Transforms/Scalar/Float2Int.h
    llvm/include/llvm/Transforms/Utils/LoopUtils.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index 1da65da119ac4..6200af73842c7 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -66,7 +66,6 @@ class User;
 class Value;
 class VPIntrinsic;
 struct KnownBits;
-template <typename T> class Optional;
 
 /// Information about a load/store intrinsic defined by the target.
 struct MemIntrinsicInfo {

diff  --git a/llvm/include/llvm/AsmParser/LLParser.h b/llvm/include/llvm/AsmParser/LLParser.h
index 70b7cd9cbab2a..a0b22ab5b8ffa 100644
--- a/llvm/include/llvm/AsmParser/LLParser.h
+++ b/llvm/include/llvm/AsmParser/LLParser.h
@@ -33,7 +33,6 @@ namespace llvm {
   class SourceMgr;
   class Type;
   struct MaybeAlign;
-  template <typename T> class Optional;
   class Function;
   class Value;
   class BasicBlock;

diff  --git a/llvm/include/llvm/BinaryFormat/Dwarf.h b/llvm/include/llvm/BinaryFormat/Dwarf.h
index d9904856263fd..60b2c77d1632c 100644
--- a/llvm/include/llvm/BinaryFormat/Dwarf.h
+++ b/llvm/include/llvm/BinaryFormat/Dwarf.h
@@ -30,11 +30,9 @@
 
 namespace llvm {
 class StringRef;
-template<typename T> class Optional;
 
 namespace dwarf {
 
-
 //===----------------------------------------------------------------------===//
 // DWARF constants as gleaned from the DWARF Debugging Information Format V.5
 // reference manual http://www.dwarfstd.org/.

diff  --git a/llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h b/llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
index 86edfc4b055f4..9bcae7a4b729c 100644
--- a/llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
+++ b/llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
@@ -14,7 +14,6 @@
 #include "llvm/Support/Error.h"
 
 namespace llvm {
-template <typename T> class Optional;
 template <typename T> class SmallVectorImpl;
 namespace codeview {
 

diff  --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h
index 75650e2955c2d..5ced53cac9cde 100644
--- a/llvm/include/llvm/IR/Function.h
+++ b/llvm/include/llvm/IR/Function.h
@@ -50,7 +50,6 @@ struct DenormalMode;
 class DISubprogram;
 class LLVMContext;
 class Module;
-template <typename T> class Optional;
 class raw_ostream;
 class Type;
 class User;

diff  --git a/llvm/include/llvm/Object/Archive.h b/llvm/include/llvm/Object/Archive.h
index f5b9fca2816df..fbacee964aa88 100644
--- a/llvm/include/llvm/Object/Archive.h
+++ b/llvm/include/llvm/Object/Archive.h
@@ -28,9 +28,6 @@
 #include <vector>
 
 namespace llvm {
-
-template <typename T> class Optional;
-
 namespace object {
 
 const char ArchiveMagic[] = "!<arch>\n";

diff  --git a/llvm/include/llvm/Transforms/Scalar/Float2Int.h b/llvm/include/llvm/Transforms/Scalar/Float2Int.h
index 4da07663e760c..83be329bed60b 100644
--- a/llvm/include/llvm/Transforms/Scalar/Float2Int.h
+++ b/llvm/include/llvm/Transforms/Scalar/Float2Int.h
@@ -25,7 +25,6 @@ class DominatorTree;
 class Function;
 class Instruction;
 class LLVMContext;
-template <typename T> class Optional;
 class Type;
 class Value;
 

diff  --git a/llvm/include/llvm/Transforms/Utils/LoopUtils.h b/llvm/include/llvm/Transforms/Utils/LoopUtils.h
index 0580cecfc7926..cded98662389f 100644
--- a/llvm/include/llvm/Transforms/Utils/LoopUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/LoopUtils.h
@@ -47,7 +47,6 @@ typedef std::pair<const RuntimeCheckingPtrGroup *,
                   const RuntimeCheckingPtrGroup *>
     RuntimePointerCheck;
 
-template <typename T> class Optional;
 template <typename T, unsigned N> class SmallSetVector;
 template <typename T, unsigned N> class SmallPriorityWorklist;
 


        


More information about the llvm-commits mailing list