Extracted pass ObjCARCExpand from ObjCARC.cpp => ObjCARCExpand.cpp.

I also added the local header ObjCARC.h for common functions used by the
various passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman
2013-01-28 03:28:38 +00:00
parent 410b46a390
commit 6504255a22
5 changed files with 370 additions and 299 deletions

View File

@ -13,15 +13,25 @@
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/ObjCARC.h"
#include "ObjCARC.h"
#include "llvm-c/Initialization.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/InitializePasses.h"
#include "llvm/PassManager.h"
#include "llvm/Support/Commandline.h"
using namespace llvm;
using namespace llvm::objcarc;
/// \brief A handy option to enable/disable all ARC Optimizations.
bool llvm::objcarc::EnableARCOpts;
static cl::opt<bool, true>
EnableARCOptimizations("enable-objc-arc-opts",
cl::location(EnableARCOpts),
cl::init(true));
/// initializeObjCARCOptsPasses - Initialize all passes linked into the
/// ObjCARCOpts library.