From 13a5f1a8b737f14f19636a19c18760684d36001e Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Tue, 29 Jan 2013 04:51:59 +0000 Subject: [PATCH] Juggled Debug.h from ObjCARC.h to only the including cpp files that actually have DEBUG statements. Also changed raw_ostream in said header to be a forward declaration (removing an include). llvm-svn: 173769 --- llvm/lib/Transforms/ObjCARC/ObjCARC.h | 6 ++++-- llvm/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp | 1 + llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp | 1 + llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARC.h b/llvm/lib/Transforms/ObjCARC/ObjCARC.h index 32ca30e0a0b4..2b90496018a6 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARC.h +++ b/llvm/lib/Transforms/ObjCARC/ObjCARC.h @@ -30,12 +30,14 @@ #include "llvm/IR/Module.h" #include "llvm/Pass.h" #include "llvm/Support/CallSite.h" -#include "llvm/Support/Debug.h" #include "llvm/Support/InstIterator.h" -#include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/ObjCARC.h" #include "llvm/Transforms/Utils/Local.h" +namespace llvm { +class raw_ostream; +} + namespace llvm { namespace objcarc { diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp index fe6406a03541..36cf4e54d5cf 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp +++ b/llvm/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp @@ -32,6 +32,7 @@ #include "ObjCARC.h" #include "llvm/ADT/STLExtras.h" #include "llvm/IR/Constants.h" +#include "llvm/Support/Debug.h" using namespace llvm; using namespace llvm::objcarc; diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp index 9522bd417c2f..a9140fb6e73a 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp +++ b/llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp @@ -31,6 +31,7 @@ #include "llvm/Analysis/Dominators.h" #include "llvm/IR/InlineAsm.h" #include "llvm/IR/Operator.h" +#include "llvm/Support/Debug.h" using namespace llvm; using namespace llvm::objcarc; diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index 9ccc6ee9604d..47c158cd5aee 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp @@ -39,6 +39,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/IR/LLVMContext.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/Debug.h" using namespace llvm; using namespace llvm::objcarc;