diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-01-29 04:51:59 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-01-29 04:51:59 +0000 |
commit | 9ab758b9bc2fe51af6dabbdeb30f4a2e600bdcd0 (patch) | |
tree | bba43910308939a5db2702f658c98107494c4997 /lib/Transforms | |
parent | 7a7102d17f979918042bc040e27288d64a6bea5f (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/ObjCARC/ObjCARC.h | 6 | ||||
-rw-r--r-- | lib/Transforms/ObjCARC/ObjCARCAPElim.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/ObjCARC/ObjCARCContract.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/lib/Transforms/ObjCARC/ObjCARC.h b/lib/Transforms/ObjCARC/ObjCARC.h index 32ca30e0a0..2b90496018 100644 --- a/lib/Transforms/ObjCARC/ObjCARC.h +++ b/lib/Transforms/ObjCARC/ObjCARC.h @@ -30,13 +30,15 @@ #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 { /// \brief A handy option to enable/disable all ARC Optimizations. diff --git a/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp b/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp index fe6406a035..36cf4e54d5 100644 --- a/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp +++ b/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/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/lib/Transforms/ObjCARC/ObjCARCContract.cpp index 9522bd417c..a9140fb6e7 100644 --- a/lib/Transforms/ObjCARC/ObjCARCContract.cpp +++ b/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/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index 9ccc6ee960..47c158cd5a 100644 --- a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/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; |