blob: 56d1cb42122581a10e04cbd1c35b679db5ca246b [file] [log] [blame]
Chandler Carruth0f792182015-08-20 08:06:03 +00001//===- ObjCARCAnalysisUtils.cpp -------------------------------------------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Chandler Carruth0f792182015-08-20 08:06:03 +00006//
7//===----------------------------------------------------------------------===//
8//
9// This file implements common infrastructure for libLLVMObjCARCOpts.a, which
10// implements several scalar transformations over the LLVM intermediate
11// representation, including the C bindings for that library.
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/Analysis/ObjCARCAnalysisUtils.h"
16#include "llvm/Support/CommandLine.h"
17
18using namespace llvm;
19using namespace llvm::objcarc;
20
Adrian Prantl5f8f34e42018-05-01 15:54:18 +000021/// A handy option to enable/disable all ARC Optimizations.
Chandler Carruth0f792182015-08-20 08:06:03 +000022bool llvm::objcarc::EnableARCOpts;
Zachary Turner8065f0b2017-12-01 00:53:10 +000023static cl::opt<bool, true> EnableARCOptimizations(
24 "enable-objc-arc-opts", cl::desc("enable/disable all ARC Optimizations"),
25 cl::location(EnableARCOpts), cl::init(true), cl::Hidden);