forked from OSchip/llvm-project
[llvm] Remove unused forward declarations (NFC)
This commit is contained in:
parent
f142c45f1e
commit
4e2ec7e38d
|
@ -25,7 +25,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
struct AAMDNodes;
|
||||
class AssumptionCache;
|
||||
class BasicBlock;
|
||||
class DataLayout;
|
||||
|
|
|
@ -44,7 +44,6 @@ class IntToPtrInst;
|
|||
class LLVMContext;
|
||||
class LoadInst;
|
||||
class PHINode;
|
||||
class PointerType;
|
||||
class SelectInst;
|
||||
class Type;
|
||||
class UndefValue;
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace llvm {
|
|||
class MachineFunction;
|
||||
class MachineInstr;
|
||||
struct PerFunctionMIParsingState;
|
||||
struct SlotMapping;
|
||||
|
||||
/// MIRFormater - Interface to format MIR operand based on target
|
||||
class MIRFormatter {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class DataExtractor;
|
||||
class DWARFUnit;
|
||||
|
||||
/// DWARFDebugInfoEntry - A DIE with only the minimum required data.
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
namespace llvm {
|
||||
class raw_ostream;
|
||||
namespace gsym {
|
||||
struct FileEntry;
|
||||
|
||||
struct SourceLocation {
|
||||
StringRef Name; ///< Function or symbol name.
|
||||
|
|
|
@ -21,7 +21,6 @@ class ObjectFile;
|
|||
|
||||
namespace gsym {
|
||||
|
||||
struct CUInfo;
|
||||
class GsymCreator;
|
||||
|
||||
class ObjectFileTransformer {
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class FileBufferByteStream;
|
||||
class WritableBinaryStream;
|
||||
namespace msf {
|
||||
|
||||
class MSFBuilder {
|
||||
|
|
|
@ -283,9 +283,7 @@ struct StructorIdentifierNode;
|
|||
struct ThunkSignatureNode;
|
||||
struct PointerTypeNode;
|
||||
struct ArrayTypeNode;
|
||||
struct CustomNode;
|
||||
struct TagTypeNode;
|
||||
struct IntrinsicTypeNode;
|
||||
struct NodeArrayNode;
|
||||
struct QualifiedNameNode;
|
||||
struct TemplateParameterReferenceNode;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class IntelJITEventsWrapper;
|
||||
class MachineFunction;
|
||||
class OProfileWrapper;
|
||||
|
||||
namespace object {
|
||||
|
|
|
@ -51,13 +51,8 @@
|
|||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class Value;
|
||||
|
||||
namespace orc {
|
||||
|
||||
class ExtractingIRMaterializationUnit;
|
||||
|
||||
class CompileOnDemandLayer : public IRLayer {
|
||||
friend class PartitioningIRMaterializationUnit;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class MCContext;
|
||||
class MemoryBuffer;
|
||||
class Module;
|
||||
class ObjectCache;
|
||||
|
|
|
@ -33,7 +33,6 @@ class ConstantArray;
|
|||
class GlobalVariable;
|
||||
class Function;
|
||||
class Module;
|
||||
class TargetMachine;
|
||||
class Value;
|
||||
|
||||
namespace orc {
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <memory>
|
||||
|
||||
namespace llvm {
|
||||
class Module;
|
||||
namespace orc {
|
||||
|
||||
/// A layer that applies a transform to emitted modules.
|
||||
|
|
|
@ -38,10 +38,6 @@ class LinkGraph;
|
|||
class Symbol;
|
||||
} // namespace jitlink
|
||||
|
||||
namespace object {
|
||||
class ObjectFile;
|
||||
} // namespace object
|
||||
|
||||
namespace orc {
|
||||
|
||||
class ObjectLinkingLayerJITLinkContext;
|
||||
|
|
|
@ -20,13 +20,6 @@
|
|||
#include "llvm/Frontend/OpenMP/OMP.h.inc"
|
||||
|
||||
namespace llvm {
|
||||
class Type;
|
||||
class Module;
|
||||
class ArrayType;
|
||||
class StructType;
|
||||
class PointerType;
|
||||
class FunctionType;
|
||||
|
||||
namespace omp {
|
||||
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class Comdat;
|
||||
class MDNode;
|
||||
class Metadata;
|
||||
|
||||
class GlobalObject : public GlobalValue {
|
||||
|
|
|
@ -34,7 +34,6 @@ class Constant;
|
|||
class Module;
|
||||
|
||||
template <typename ValueSubClass> class SymbolTableListTraits;
|
||||
class DIGlobalVariable;
|
||||
class DIGlobalVariableExpression;
|
||||
|
||||
class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
|
||||
|
|
|
@ -32,7 +32,6 @@ class Module;
|
|||
class OptPassGate;
|
||||
template <typename T> class SmallVectorImpl;
|
||||
template <typename T> class StringMapEntry;
|
||||
class SMDiagnostic;
|
||||
class StringRef;
|
||||
class Twine;
|
||||
class LLVMRemarkStreamer;
|
||||
|
|
|
@ -90,7 +90,6 @@ template <typename T> class ArrayRef;
|
|||
class Module;
|
||||
class StringRef;
|
||||
class Value;
|
||||
class Timer;
|
||||
class PMDataManager;
|
||||
|
||||
// enums for debugging strings
|
||||
|
|
|
@ -47,9 +47,7 @@ class GVMaterializer;
|
|||
class LLVMContext;
|
||||
class MemoryBuffer;
|
||||
class ModuleSummaryIndex;
|
||||
class Pass;
|
||||
class RandomNumberGenerator;
|
||||
template <class PtrType> class SmallPtrSetImpl;
|
||||
class StructType;
|
||||
class VersionTuple;
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class Instruction;
|
||||
class BasicBlock;
|
||||
|
||||
constexpr const char *PseudoProbeDescMetadataName = "llvm.pseudo_probe_desc";
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ class BasicBlock;
|
|||
class Function;
|
||||
class Instruction;
|
||||
class Value;
|
||||
template <typename> class SmallVectorImpl;
|
||||
template <typename, bool> class DominatorTreeBase;
|
||||
|
||||
template <> class GenericSSAContext<Function> {
|
||||
|
|
|
@ -35,7 +35,6 @@ class LLVMContext;
|
|||
class MemoryBufferRef;
|
||||
class Module;
|
||||
class raw_pwrite_stream;
|
||||
class Target;
|
||||
class ToolOutputFile;
|
||||
|
||||
/// Resolve linkage for prevailing symbols in the \p Index. Linkage changes
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class StringRef;
|
||||
class LLVMContext;
|
||||
class TargetMachine;
|
||||
|
||||
/// Helper to gather options relevant to the target machine creation
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class Module;
|
||||
class StructType;
|
||||
class Type;
|
||||
|
||||
/// This class provides the core functionality of linking in LLVM. It keeps a
|
||||
/// pointer to the merged module so far. It doesn't take ownership of the
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class MCSection;
|
||||
class MCStreamer;
|
||||
class MCSymbol;
|
||||
class MCObjectStreamer;
|
||||
class raw_ostream;
|
||||
|
|
|
@ -40,7 +40,6 @@ namespace llvm {
|
|||
|
||||
class AssemblerConstantPools;
|
||||
class MCAsmBackend;
|
||||
class MCCodeEmitter;
|
||||
class MCContext;
|
||||
struct MCDwarfFrameInfo;
|
||||
class MCExpr;
|
||||
|
|
|
@ -22,8 +22,6 @@ class Twine;
|
|||
|
||||
namespace object {
|
||||
|
||||
class Binary;
|
||||
|
||||
const std::error_category &object_category();
|
||||
|
||||
enum class object_error {
|
||||
|
|
|
@ -20,10 +20,7 @@
|
|||
|
||||
namespace llvm {
|
||||
class BitcodeModule;
|
||||
class Mangler;
|
||||
class Module;
|
||||
class GlobalValue;
|
||||
class Triple;
|
||||
|
||||
namespace object {
|
||||
class ObjectFile;
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
namespace llvm {
|
||||
class StringRef;
|
||||
class Module;
|
||||
class LLVMContext;
|
||||
|
||||
namespace object {
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class ARMAttributeParser;
|
||||
class SubtargetFeatures;
|
||||
|
||||
namespace object {
|
||||
|
|
|
@ -26,7 +26,6 @@ class raw_ostream;
|
|||
namespace DWARFYAML {
|
||||
|
||||
struct Data;
|
||||
struct PubSection;
|
||||
|
||||
Error emitDebugAbbrev(raw_ostream &OS, const Data &DI);
|
||||
Error emitDebugStr(raw_ostream &OS, const Data &DI);
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include "llvm/Support/Error.h"
|
||||
|
||||
namespace llvm {
|
||||
class StringRef;
|
||||
|
||||
class ARMAttributeParser : public ELFAttributeParser {
|
||||
struct DisplayHandler {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "llvm/ADT/BitVector.h"
|
||||
|
||||
namespace llvm {
|
||||
class LLVMContext;
|
||||
class MemoryBuffer;
|
||||
|
||||
class CodeGenCoverage {
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class DataLayout;
|
||||
class Type;
|
||||
class raw_ostream;
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ struct RecordContext;
|
|||
} // namespace detail
|
||||
|
||||
class ListRecTy;
|
||||
struct MultiClass;
|
||||
class Record;
|
||||
class RecordKeeper;
|
||||
class RecordVal;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "llvm/Target/TargetOptions.h"
|
||||
|
||||
namespace llvm {
|
||||
class TargetMachine;
|
||||
|
||||
enum class RunOutliner { TargetDefault, AlwaysOutline, NeverOutline };
|
||||
enum class RegAllocType { Default, Basic, Fast, Greedy, PBQP };
|
||||
|
|
|
@ -25,9 +25,7 @@ namespace llvm {
|
|||
|
||||
class ConstantFP;
|
||||
class ConstantInt;
|
||||
class DbgVariable;
|
||||
class DwarfCompileUnit;
|
||||
class MachineOperand;
|
||||
class MCDwarfDwoLineTable;
|
||||
class MCSymbol;
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class AsmPrinter;
|
||||
class MCStreamer;
|
||||
class Module;
|
||||
class DILocation;
|
||||
|
||||
class PseudoProbeHandler : public AsmPrinterHandler {
|
||||
|
|
|
@ -23,7 +23,6 @@ class BasicBlock;
|
|||
class MachineBranchProbabilityInfo;
|
||||
class MachineFunction;
|
||||
class MachineLoopInfo;
|
||||
class MachineModuleInfo;
|
||||
class MachineRegisterInfo;
|
||||
class MBFIWrapper;
|
||||
class ProfileSummaryInfo;
|
||||
|
|
|
@ -19,9 +19,6 @@
|
|||
#define DEBUG_TYPE "jitlink"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class MemoryBufferRef;
|
||||
|
||||
namespace jitlink {
|
||||
|
||||
/// Base class for a JIT linker.
|
||||
|
|
|
@ -25,7 +25,6 @@ class ARMAsmPrinter;
|
|||
class ARMBaseTargetMachine;
|
||||
class ARMRegisterBankInfo;
|
||||
class ARMSubtarget;
|
||||
struct BasicBlockInfo;
|
||||
class Function;
|
||||
class FunctionPass;
|
||||
class InstructionSelector;
|
||||
|
|
|
@ -23,7 +23,6 @@ class MCCodeEmitter;
|
|||
class MCStreamer;
|
||||
class X86Subtarget;
|
||||
class TargetMachine;
|
||||
struct ASanAccessInfo;
|
||||
|
||||
class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
|
||||
const X86Subtarget *Subtarget = nullptr;
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
namespace llvm {
|
||||
|
||||
class AAResults;
|
||||
class DataLayout;
|
||||
class PHINode;
|
||||
class SelectInst;
|
||||
class Value;
|
||||
|
|
|
@ -138,8 +138,6 @@ AllowIVWidening("indvars-widen-indvars", cl::Hidden, cl::init(true),
|
|||
|
||||
namespace {
|
||||
|
||||
struct RewritePhi;
|
||||
|
||||
class IndVarSimplify {
|
||||
LoopInfo *LI;
|
||||
ScalarEvolution *SE;
|
||||
|
|
|
@ -405,7 +405,6 @@ public:
|
|||
|
||||
class VPlan;
|
||||
class VPBasicBlock;
|
||||
class VPRegionBlock;
|
||||
|
||||
/// This class can be used to assign consecutive numbers to all VPValues in a
|
||||
/// VPlan and allows querying the numbering for printing, similar to the
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class Value;
|
||||
class PassInfo;
|
||||
class Module;
|
||||
class GlobalVariable;
|
||||
|
@ -35,8 +34,6 @@ class AbstractInterpreter;
|
|||
class Instruction;
|
||||
class LLVMContext;
|
||||
|
||||
class DebugCrashes;
|
||||
|
||||
class CC;
|
||||
|
||||
extern bool DisableSimplifyCFG;
|
||||
|
|
|
@ -18,7 +18,6 @@ class Error;
|
|||
namespace object {
|
||||
class COFFObjectFile;
|
||||
class COFFImportFile;
|
||||
class ObjectFile;
|
||||
class RelocationRef;
|
||||
} // namespace object
|
||||
|
||||
|
|
|
@ -21,10 +21,6 @@ class StringRef;
|
|||
class Twine;
|
||||
|
||||
namespace object {
|
||||
class ELFObjectFileBase;
|
||||
class ELFSectionRef;
|
||||
class MachOObjectFile;
|
||||
class MachOUniversalBinary;
|
||||
class RelocationRef;
|
||||
struct VersionEntry;
|
||||
} // namespace object
|
||||
|
|
|
@ -21,12 +21,6 @@
|
|||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
class BitVector;
|
||||
|
||||
namespace codeview {
|
||||
class LazyRandomTypeCollection;
|
||||
}
|
||||
|
||||
namespace object {
|
||||
class COFFObjectFile;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ class LazyRandomTypeCollection;
|
|||
}
|
||||
namespace object {
|
||||
class COFFObjectFile;
|
||||
class SectionRef;
|
||||
} // namespace object
|
||||
|
||||
namespace pdb {
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <list>
|
||||
|
||||
namespace llvm {
|
||||
class BinaryStreamReader;
|
||||
namespace msf {
|
||||
class MSFStreamLayout;
|
||||
} // namespace msf
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
namespace llvm {
|
||||
namespace pdb {
|
||||
class PDBFile;
|
||||
|
||||
class OutputStyle {
|
||||
public:
|
||||
|
|
|
@ -27,13 +27,9 @@
|
|||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
namespace codeview {
|
||||
class DebugStringTableSubsection;
|
||||
}
|
||||
namespace pdb {
|
||||
|
||||
namespace yaml {
|
||||
struct SerializationContext;
|
||||
|
||||
struct MSFHeaders {
|
||||
msf::SuperBlock SuperBlock;
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
namespace llvm {
|
||||
namespace pdb {
|
||||
class ModuleDebugStreamRef;
|
||||
|
||||
class YAMLOutputStyle : public OutputStyle {
|
||||
public:
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
namespace opt {
|
||||
class InputArgList;
|
||||
}
|
||||
namespace rc {
|
||||
|
||||
class RCParser {
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
namespace llvm {
|
||||
class Record;
|
||||
class RecordKeeper;
|
||||
class CodeGenTarget;
|
||||
|
||||
struct CodeGenIntrinsic {
|
||||
Record *TheDef; // The actual record defining this intrinsic.
|
||||
|
|
|
@ -28,7 +28,6 @@ namespace llvm {
|
|||
class CodeGenTarget;
|
||||
class CodeGenSchedModels;
|
||||
class CodeGenInstruction;
|
||||
class CodeGenRegisterClass;
|
||||
|
||||
using RecVec = std::vector<Record*>;
|
||||
using RecIter = std::vector<Record*>::const_iterator;
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
namespace llvm {
|
||||
class GIMatchDag;
|
||||
class GIMatchDagInstr;
|
||||
class GIMatchDagEdge;
|
||||
class GIMatchDagPredicate;
|
||||
|
||||
/// Represents a dependency that must be met to evaluate a predicate.
|
||||
|
|
Loading…
Reference in New Issue