[PM] Make AnalysisManager::registerPass take its parameter by universal reference.
authorJustin Lebar <jlebar@google.com>
Sat, 3 Dec 2016 19:49:19 +0000 (19:49 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 3 Dec 2016 19:49:19 +0000 (19:49 +0000)
commit9b085dd723f951d26949f3c71b50e67c58445f40
tree3860e5bf65b6d5633e2cf8f1f80dfc2a0e0b5f1f
parent125b13abea840ad17213a8421c55d9551ca277bb
[PM] Make AnalysisManager::registerPass take its parameter by universal reference.

Summary:
Previously, we were forcing a copy if you passed an lvalue argument; now
we'll take it by reference.

Reviewers: chandlerc

Subscribers: mehdi_amini, silvas, llvm-commits

Differential Revision: https://reviews.llvm.org/D27370

llvm-svn: 288594
llvm/include/llvm/IR/PassManager.h