mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
Update NVVMReflect usage doc to new idiom for adding target-specific early passes.
llvm-svn: 293327
This commit is contained in:
parent
94dd5f41b3
commit
0a8fdd1e4a
@ -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
|
||||
---------------------
|
||||
|
Loading…
Reference in New Issue
Block a user