Add a few missing headers for modularization/IWYU/etc

Several cases where class definitions are required for DenseMap pointer
traits handling.

llvm-svn: 316803
This commit is contained in:
David Blaikie 2017-10-27 22:12:46 +00:00
parent 7c67009fe5
commit 8699f71310
6 changed files with 8 additions and 3 deletions

View File

@ -10,6 +10,8 @@
#ifndef LLVM_MC_MCWASMSTREAMER_H
#define LLVM_MC_MCWASMSTREAMER_H
#include "MCAsmBackend.h"
#include "MCCodeEmitter.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCObjectStreamer.h"
@ -17,9 +19,7 @@
#include "llvm/Support/DataTypes.h"
namespace llvm {
class MCAsmBackend;
class MCAssembler;
class MCCodeEmitter;
class MCExpr;
class MCInst;
class raw_ostream;

View File

@ -19,6 +19,7 @@
#ifndef LLVM_PASSANALYSISSUPPORT_H
#define LLVM_PASSANALYSISSUPPORT_H
#include "Pass.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <cassert>

View File

@ -12,12 +12,12 @@
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include <utility>
namespace llvm {
class DILocalVariable;
class DILocation;
class MachineFunction;
class MachineInstr;
class TargetRegisterInfo;

View File

@ -12,6 +12,7 @@
#include "ARMAsmBackend.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/MC/MCObjectWriter.h"
namespace llvm {
class ARMAsmBackendDarwin : public ARMAsmBackend {

View File

@ -12,6 +12,8 @@
#include "ARMAsmBackend.h"
#include "MCTargetDesc/ARMMCTargetDesc.h"
#include "llvm/MC/MCObjectWriter.h"
using namespace llvm;
namespace {

View File

@ -11,6 +11,7 @@
#define LLVM_LIB_TARGET_ARM_ARMASMBACKENDWINCOFF_H
#include "ARMAsmBackend.h"
#include "llvm/MC/MCObjectWriter.h"
using namespace llvm;
namespace {