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