blob: d6db6386c38bd8969da1e9a0126cfd7f07054b83 [file] [log] [blame]
Chandler Carruthcce9e532015-08-20 08:06:03 +00001//===- ObjCARCAnalysisUtils.cpp -------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements common infrastructure for libLLVMObjCARCOpts.a, which
11// implements several scalar transformations over the LLVM intermediate
12// representation, including the C bindings for that library.
13//
14//===----------------------------------------------------------------------===//
15
16#include "llvm/Analysis/ObjCARCAnalysisUtils.h"
17#include "llvm/Support/CommandLine.h"
18
19using namespace llvm;
20using namespace llvm::objcarc;
21
Adrian Prantl26b584c2018-05-01 15:54:18 +000022/// A handy option to enable/disable all ARC Optimizations.
Chandler Carruthcce9e532015-08-20 08:06:03 +000023bool llvm::objcarc::EnableARCOpts;
Zachary Turner9a4e15c2017-12-01 00:53:10 +000024static cl::opt<bool, true> EnableARCOptimizations(
25 "enable-objc-arc-opts", cl::desc("enable/disable all ARC Optimizations"),
26 cl::location(EnableARCOpts), cl::init(true), cl::Hidden);