[PATCH] D18617: Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil.

Chandler Carruth via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 12 10:10:49 PDT 2016


chandlerc added inline comments.

================
Comment at: lib/CodeGen/BackendUtil.cpp:347
@@ +346,3 @@
+        PassManagerBuilder::EP_EarlyAsPossible,
+        [&](const PassManagerBuilder &, legacy::PassManagerBase &PM) {
+          TM->addEarlyAsPossiblePasses(PM);
----------------
Wow, C++ is silly here. You can't capture it *by value*. You have to use an init capture (which we can't use yet). How silly. Anyways, thanks for the explanation.


http://reviews.llvm.org/D18617





More information about the cfe-commits mailing list