Update NVVMReflect usage doc to new idiom for adding target-specific early passes.

llvm-svn: 293327
This commit is contained in:
Justin Lebar 2017-01-27 19:44:24 +00:00
parent 94dd5f41b3
commit 0a8fdd1e4a

View File

@ -334,11 +334,8 @@ manager:
std::unique_ptr<TargetMachine> TM = ...;
PassManagerBuilder PMBuilder(...);
PMBuilder.addExtension(
PassManagerBuilder::EP_EarlyAsPossible,
[&](const PassManagerBuilder &, legacy::PassManagerBase &PM) {
TM->addEarlyAsPossiblePasses(PM);
});
if (TM)
TM->adjustPassManager(PMBuilder);
Reflection Parameters
---------------------