[llvm] aa896a0 - Remove unnecessary forward declarations. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 05:32:27 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-17T13:31:52+01:00
New Revision: aa896a0b3a9d93df818fbe9b68644ad90bcda831
URL: https://github.com/llvm/llvm-project/commit/aa896a0b3a9d93df818fbe9b68644ad90bcda831
DIFF: https://github.com/llvm/llvm-project/commit/aa896a0b3a9d93df818fbe9b68644ad90bcda831.diff
LOG: Remove unnecessary forward declarations. NFCI.
All of these forward declarations are fully defined in headers that are directly included.
Added:
Modified:
llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h
llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
llvm/include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
llvm/include/llvm/IR/LegacyPassManagers.h
llvm/include/llvm/MC/MCELFObjectWriter.h
llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
llvm/include/llvm/ProfileData/SampleProf.h
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/include/llvm/Transforms/Utils/LoopVersioning.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h b/llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h
index 2982146f960c..88849d024c23 100644
--- a/llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h
+++ b/llvm/include/llvm/DebugInfo/PDB/PDBSymbol.h
@@ -42,7 +42,6 @@ class StringRef;
class raw_ostream;
namespace pdb {
-class IPDBRawSymbol;
class IPDBSession;
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue) \
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
index 8376d163d57a..c7ba57228ab7 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h
@@ -28,8 +28,6 @@ class TargetMachine;
namespace orc {
-class JITTargetMachineBuilder;
-
IRSymbolMapper::ManglingOptions
irManglingOptionsFromTargetOptions(const TargetOptions &Opts);
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
index a4e43d4e1c9c..943404262bd0 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
@@ -22,7 +22,6 @@
namespace llvm {
class Module;
-class JITSymbolResolver;
namespace orc {
diff --git a/llvm/include/llvm/IR/LegacyPassManagers.h b/llvm/include/llvm/IR/LegacyPassManagers.h
index 6b1ddd4d79f8..498e736a0100 100644
--- a/llvm/include/llvm/IR/LegacyPassManagers.h
+++ b/llvm/include/llvm/IR/LegacyPassManagers.h
@@ -88,7 +88,6 @@
namespace llvm {
template <typename T> class ArrayRef;
class Module;
-class Pass;
class StringRef;
class Value;
class Timer;
diff --git a/llvm/include/llvm/MC/MCELFObjectWriter.h b/llvm/include/llvm/MC/MCELFObjectWriter.h
index 8f78b99d3794..5d99c494b11e 100644
--- a/llvm/include/llvm/MC/MCELFObjectWriter.h
+++ b/llvm/include/llvm/MC/MCELFObjectWriter.h
@@ -23,7 +23,6 @@ namespace llvm {
class MCAssembler;
class MCContext;
class MCFixup;
-class MCObjectWriter;
class MCSymbol;
class MCSymbolELF;
class MCValue;
diff --git a/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h b/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
index 5d6511372f6e..0a1e50d501e9 100644
--- a/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
+++ b/llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
@@ -24,7 +24,6 @@
namespace llvm {
class MCInst;
-class MCParsedAsmOperand;
class MCStreamer;
class MCSubtargetInfo;
template <typename T> class SmallVectorImpl;
diff --git a/llvm/include/llvm/ProfileData/SampleProf.h b/llvm/include/llvm/ProfileData/SampleProf.h
index aca941b2da15..3707f980ccca 100644
--- a/llvm/include/llvm/ProfileData/SampleProf.h
+++ b/llvm/include/llvm/ProfileData/SampleProf.h
@@ -37,8 +37,6 @@
namespace llvm {
-class raw_ostream;
-
const std::error_category &sampleprof_category();
enum class sampleprof_error {
diff --git a/llvm/include/llvm/Transforms/Utils/LoopUtils.h b/llvm/include/llvm/Transforms/Utils/LoopUtils.h
index cf0982d270b8..d741b5142e5b 100644
--- a/llvm/include/llvm/Transforms/Utils/LoopUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/LoopUtils.h
@@ -39,7 +39,6 @@ class ScalarEvolution;
class SCEV;
class SCEVExpander;
class TargetLibraryInfo;
-class TargetTransformInfo;
class LPPassManager;
class Instruction;
struct RuntimeCheckingPtrGroup;
diff --git a/llvm/include/llvm/Transforms/Utils/LoopVersioning.h b/llvm/include/llvm/Transforms/Utils/LoopVersioning.h
index ac6cee637a46..13321e498c97 100644
--- a/llvm/include/llvm/Transforms/Utils/LoopVersioning.h
+++ b/llvm/include/llvm/Transforms/Utils/LoopVersioning.h
@@ -25,7 +25,6 @@ namespace llvm {
class Loop;
class LoopAccessInfo;
class LoopInfo;
-class ScalarEvolution;
struct RuntimeCheckingPtrGroup;
typedef std::pair<const RuntimeCheckingPtrGroup *,
const RuntimeCheckingPtrGroup *>
More information about the llvm-commits
mailing list