OSDN Git Service

Juggled Debug.h from ObjCARC.h to only the including cpp files that
authorMichael Gottesman <mgottesman@apple.com>
Tue, 29 Jan 2013 04:51:59 +0000 (04:51 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Tue, 29 Jan 2013 04:51:59 +0000 (04:51 +0000)
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

lib/Transforms/ObjCARC/ObjCARC.h
lib/Transforms/ObjCARC/ObjCARCAPElim.cpp
lib/Transforms/ObjCARC/ObjCARCContract.cpp
lib/Transforms/ObjCARC/ObjCARCOpts.cpp

index 32ca30e..2b90496 100644 (file)
 #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.
index fe6406a..36cf4e5 100644 (file)
@@ -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;
index 9522bd4..a9140fb 100644 (file)
@@ -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;
index 9ccc6ee..47c158c 100644 (file)
@@ -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;