From b85e7ae9abd02462530a9c097d016f587538eae6 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 12 Oct 2014 22:49:26 +0000 Subject: [PATCH] [Modules] Add some missing includes to make files compile stand-alone. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219592 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/ConstantPools.h | 2 ++ lib/Analysis/BlockFrequencyInfoImpl.cpp | 2 +- lib/Support/Unix/Process.inc | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.34.1