[PM] Switch new pass manager from polymorphic_ptr to unique_ptr now that
authorChandler Carruth <chandlerc@gmail.com>
Sun, 9 Mar 2014 11:49:53 +0000 (11:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 9 Mar 2014 11:49:53 +0000 (11:49 +0000)
commitc3f3da3d214d8fe32f64bfb22060f20b026ca5e9
tree374f63459b00967c6ac07917cdd6b87e2321e0e9
parenta3374446d46ccc9d15701a88a5d42a3303258e38
[PM] Switch new pass manager from polymorphic_ptr to unique_ptr now that
it is available. Also make the move semantics sufficiently correct to
tolerate move-only passes, as the PassManagers *are* move-only passes.

llvm-svn: 203391
llvm/include/llvm/IR/PassManager.h
llvm/lib/IR/PassManager.cpp
llvm/tools/opt/Passes.cpp
llvm/unittests/IR/PassManagerTest.cpp