OSDN Git Service

[NewPM] Run ObjC ARC passes
authorArthur Eubanks <aeubanks@google.com>
Wed, 23 Dec 2020 05:41:25 +0000 (21:41 -0800)
committerArthur Eubanks <aeubanks@google.com>
Fri, 8 Jan 2021 23:47:11 +0000 (15:47 -0800)
commit756dd707668ccc1ac22b88d5899984843a5a3262
treea1cc5ed2f69762107eb55a52b5f89f1df8d5d508
parentbc8acf2ce8ad6e8c9b1d97b2e02d3f4ad26e1d9d
[NewPM] Run ObjC ARC passes

Match the legacy PM in running various ObjC ARC passes.

This requires making some module passes into function passes. These were
initially ported as module passes since they add function declarations
(e.g. https://reviews.llvm.org/D86178), but that's still up for debate
and other passes do so.

Reviewed By: ahatanak

Differential Revision: https://reviews.llvm.org/D93743
clang/lib/CodeGen/BackendUtil.cpp
llvm/include/llvm/Transforms/ObjCARC.h
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp