Skip to content

Commit

Permalink
Remove unused forward declarations (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Jul 17, 2022
1 parent 8b3ed1f commit 3112987
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 33 deletions.
1 change: 0 additions & 1 deletion llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
Expand Up @@ -20,7 +20,6 @@
#include "llvm/IR/PassManager.h"

namespace llvm {
class DominatorTree;
class Function;
class LoopInfo;

Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/CodeGen/GlobalISel/Utils.h
Expand Up @@ -48,7 +48,6 @@ class TargetRegisterInfo;
class TargetRegisterClass;
class ConstantFP;
class APFloat;
class MachineIRBuilder;

// Convenience macros for dealing with vector reduction opcodes.
#define GISEL_VECREDUCE_CASES_ALL \
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/CodeGen/MachineModuleInfo.h
Expand Up @@ -41,7 +41,6 @@

namespace llvm {

class BasicBlock;
class Function;
class LLVMTargetMachine;
class MachineFunction;
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/CodeGen/Passes.h
Expand Up @@ -26,7 +26,6 @@ namespace llvm {
class FunctionPass;
class MachineFunction;
class MachineFunctionPass;
class MemoryBuffer;
class ModulePass;
class Pass;
class TargetMachine;
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/IR/Statepoint.h
Expand Up @@ -54,7 +54,6 @@ enum class StatepointFlags {
// These two are defined in IntrinsicInst since they're part of the
// IntrinsicInst class hierarchy.
class GCRelocateInst;
class GCResultInst;

/// Represents a gc.statepoint intrinsic call. This extends directly from
/// CallBase as the IntrinsicInst only supports calls and gc.statepoint is
Expand Down
2 changes: 0 additions & 2 deletions llvm/include/llvm/MC/MCDXContainerStreamer.h
Expand Up @@ -22,8 +22,6 @@
#include "llvm/MC/MCObjectWriter.h"

namespace llvm {
class MCAssembler;
class MCExpr;
class MCInst;
class raw_ostream;

Expand Down
2 changes: 0 additions & 2 deletions llvm/include/llvm/MC/MCSPIRVStreamer.h
Expand Up @@ -19,8 +19,6 @@
#include "llvm/MC/MCObjectWriter.h"

namespace llvm {
class MCAssembler;
class MCExpr;
class MCInst;
class raw_ostream;

Expand Down
2 changes: 0 additions & 2 deletions llvm/include/llvm/Object/Decompressor.h
Expand Up @@ -16,8 +16,6 @@
namespace llvm {
namespace object {

class SectionRef;

/// Decompressor helps to handle decompression of compressed sections.
class Decompressor {
public:
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/Support/Compression.h
Expand Up @@ -19,7 +19,6 @@
namespace llvm {
template <typename T> class SmallVectorImpl;
class Error;
class StringRef;

namespace compression {
namespace zlib {
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/Support/VirtualFileSystem.h
Expand Up @@ -462,7 +462,6 @@ class ProxyFileSystem : public FileSystem {
namespace detail {

class InMemoryDirectory;
class InMemoryFile;
class InMemoryNode;

struct NewInMemoryNodeInfo {
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/Transforms/Instrumentation.h
Expand Up @@ -28,7 +28,6 @@
namespace llvm {

class Triple;
class FunctionPass;
class ModulePass;
class OptimizationRemarkEmitter;
class Comdat;
Expand Down
Expand Up @@ -17,12 +17,7 @@
#include "llvm/Transforms/Instrumentation/AddressSanitizerOptions.h"

namespace llvm {
class Function;
class FunctionPass;
class GlobalVariable;
class MDNode;
class Module;
class ModulePass;
class raw_ostream;

struct AddressSanitizerOptions {
Expand Down
Expand Up @@ -17,7 +17,6 @@
#include "llvm/IR/PassManager.h"

namespace llvm {
class FunctionPass;
class Module;
class StringRef;
class raw_ostream;
Expand Down
Expand Up @@ -18,7 +18,6 @@

namespace llvm {
class Function;
class FunctionPass;
class Module;
class StringRef;
class raw_ostream;
Expand Down
Expand Up @@ -22,7 +22,6 @@

namespace llvm {
class Module;
class ModulePass;

/// This is the ModuleSanitizerCoverage pass used in the new pass manager. The
/// pass instruments functions for coverage, adds initialization calls to the
Expand Down
Expand Up @@ -17,7 +17,6 @@

namespace llvm {
class Function;
class FunctionPass;
class Module;

/// A function pass for tsan instrumentation.
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Bitcode/Reader/ValueList.h
Expand Up @@ -21,7 +21,6 @@

namespace llvm {

class Constant;
class Error;
class Type;
class Value;
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/CodeGen/RegAllocGreedy.h
Expand Up @@ -54,7 +54,6 @@ class MachineLoop;
class MachineLoopInfo;
class MachineOptimizationRemarkEmitter;
class MachineOptimizationRemarkMissed;
class SlotIndex;
class SlotIndexes;
class TargetInstrInfo;
class VirtRegMap;
Expand Down
4 changes: 0 additions & 4 deletions llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
Expand Up @@ -29,10 +29,6 @@
using namespace llvm;
using namespace dwarf;

namespace llvm {
class DwarfContext;
}

using FileLineInfoKind = DILineInfoSpecifier::FileLineInfoKind;

namespace {
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/Transforms/Coroutines/CoroInternal.h
Expand Up @@ -17,8 +17,6 @@
namespace llvm {

class CallGraph;
class CallGraphSCC;
class PassRegistry;

namespace coro {

Expand Down
2 changes: 0 additions & 2 deletions llvm/tools/llvm-reduce/deltas/Delta.h
Expand Up @@ -23,8 +23,6 @@

namespace llvm {

class MachineFunction;

struct Chunk {
int Begin;
int End;
Expand Down

0 comments on commit 3112987

Please sign in to comment.