Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Transforms/ObjCARC/ObjCARC.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- ObjCARC.cpp -------------------------------------------------------===//
2
//
3
// 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
6
//
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 "ObjCARC.h"
16
#include "llvm-c/Initialization.h"
17
#include "llvm/InitializePasses.h"
18
19
namespace llvm {
20
  class PassRegistry;
21
}
22
23
using namespace llvm;
24
using namespace llvm::objcarc;
25
26
/// initializeObjCARCOptsPasses - Initialize all passes linked into the
27
/// ObjCARCOpts library.
28
11.0k
void llvm::initializeObjCARCOpts(PassRegistry &Registry) {
29
11.0k
  initializeObjCARCAAWrapperPassPass(Registry);
30
11.0k
  initializeObjCARCAPElimPass(Registry);
31
11.0k
  initializeObjCARCExpandPass(Registry);
32
11.0k
  initializeObjCARCContractPass(Registry);
33
11.0k
  initializeObjCARCOptPass(Registry);
34
11.0k
  initializePAEvalPass(Registry);
35
11.0k
}
36
37
0
void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R) {
38
0
  initializeObjCARCOpts(*unwrap(R));
39
0
}