1*9880d681SAndroid Build Coastguard Worker //===- ObjCARCAnalysisUtils.cpp -------------------------------------------===// 2*9880d681SAndroid Build Coastguard Worker // 3*9880d681SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker // 5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker // 8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*9880d681SAndroid Build Coastguard Worker // 10*9880d681SAndroid Build Coastguard Worker // This file implements common infrastructure for libLLVMObjCARCOpts.a, which 11*9880d681SAndroid Build Coastguard Worker // implements several scalar transformations over the LLVM intermediate 12*9880d681SAndroid Build Coastguard Worker // representation, including the C bindings for that library. 13*9880d681SAndroid Build Coastguard Worker // 14*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker #include "llvm/Analysis/ObjCARCAnalysisUtils.h" 17*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/CommandLine.h" 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker using namespace llvm; 20*9880d681SAndroid Build Coastguard Worker using namespace llvm::objcarc; 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker /// \brief A handy option to enable/disable all ARC Optimizations. 23*9880d681SAndroid Build Coastguard Worker bool llvm::objcarc::EnableARCOpts; 24*9880d681SAndroid Build Coastguard Worker static cl::opt<bool, true> 25*9880d681SAndroid Build Coastguard Worker EnableARCOptimizations("enable-objc-arc-opts", 26*9880d681SAndroid Build Coastguard Worker cl::desc("enable/disable all ARC Optimizations"), 27*9880d681SAndroid Build Coastguard Worker cl::location(EnableARCOpts), 28*9880d681SAndroid Build Coastguard Worker cl::init(true)); 29