diff --git a/include/llvm/MC/ConstantPools.h b/include/llvm/MC/ConstantPools.h index 7c36c291972..1fc0332f63c 100644 --- a/include/llvm/MC/ConstantPools.h +++ b/include/llvm/MC/ConstantPools.h @@ -15,7 +15,9 @@ #ifndef LLVM_MC_CONSTANTPOOLS_H #define LLVM_MC_CONSTANTPOOLS_H +#include "llvm/ADT/MapVector.h" #include "llvm/ADT/SmallVector.h" + namespace llvm { class MCContext; class MCExpr; diff --git a/lib/Analysis/BlockFrequencyInfoImpl.cpp b/lib/Analysis/BlockFrequencyInfoImpl.cpp index d132c23b0f6..9da93424a8b 100644 --- a/lib/Analysis/BlockFrequencyInfoImpl.cpp +++ b/lib/Analysis/BlockFrequencyInfoImpl.cpp @@ -13,8 +13,8 @@ #include "llvm/Analysis/BlockFrequencyInfoImpl.h" #include "llvm/ADT/SCCIterator.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" -#include using namespace llvm; using namespace llvm::bfi_detail; diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc index 93b93ba2596..a429bb3984c 100644 --- a/lib/Support/Unix/Process.inc +++ b/lib/Support/Unix/Process.inc @@ -27,6 +27,9 @@ #ifdef HAVE_SYS_RESOURCE_H #include #endif +#ifdef HAVE_SYS_STAT_H +#include +#endif #if HAVE_SIGNAL_H #include #endif