[llvm] r300866 - Fixing outdated comment [NFC]

Artyom Skrobov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 11:20:05 PDT 2017


Author: askrobov
Date: Thu Apr 20 13:20:02 2017
New Revision: 300866

URL: http://llvm.org/viewvc/llvm-project?rev=300866&view=rev
Log:
Fixing outdated comment [NFC]

Since r32105 back in 2006, RegisterPass doesn't support
passes without a default constructor.

Modified:
    llvm/trunk/include/llvm/PassSupport.h

Modified: llvm/trunk/include/llvm/PassSupport.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassSupport.h?rev=300866&r1=300865&r2=300866&view=diff
==============================================================================
--- llvm/trunk/include/llvm/PassSupport.h (original)
+++ llvm/trunk/include/llvm/PassSupport.h Thu Apr 20 13:20:02 2017
@@ -93,11 +93,7 @@ template <typename PassName> Pass *callT
 /// 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...




More information about the llvm-commits mailing list