diff options
author | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2017-04-20 18:20:02 +0000 |
---|---|---|
committer | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2017-04-20 18:20:02 +0000 |
commit | 938fc1341d7f430cf3dad5e67704883b01e876c4 (patch) | |
tree | 3c5b476dd89f5a50d4f8081ee406bf6d021cb9cb | |
parent | 73b4a9a4a451427f7f2ba0d7b026dd4685da0b3e (diff) | |
download | bcm5719-llvm-938fc1341d7f430cf3dad5e67704883b01e876c4.tar.gz bcm5719-llvm-938fc1341d7f430cf3dad5e67704883b01e876c4.zip |
Fixing outdated comment [NFC]
Since r32105 back in 2006, RegisterPass doesn't support
passes without a default constructor.
llvm-svn: 300866
-rw-r--r-- | llvm/include/llvm/PassSupport.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/include/llvm/PassSupport.h b/llvm/include/llvm/PassSupport.h index 852d79fbd44..50e6b498fb4 100644 --- a/llvm/include/llvm/PassSupport.h +++ b/llvm/include/llvm/PassSupport.h @@ -93,11 +93,7 @@ template <typename PassName> Pass *callTargetMachineCtor(TargetMachine *TM) { /// static RegisterPass<YourPassClassName> tmp("passopt", "My Pass Name"); /// /// This statement will cause your pass to be created by calling the default -/// constructor exposed by the pass. If you have a different constructor that -/// must be called, create a global constructor function (which takes the -/// arguments you need and returns a Pass*) and register your pass like this: -/// -/// static RegisterPass<PassClassName> tmp("passopt", "My Name"); +/// constructor exposed by the pass. /// template <typename passName> struct RegisterPass : public PassInfo { // Register Pass using default constructor... |