From 938fc1341d7f430cf3dad5e67704883b01e876c4 Mon Sep 17 00:00:00 2001 From: Artyom Skrobov Date: Thu, 20 Apr 2017 18:20:02 +0000 Subject: [PATCH] Fixing outdated comment [NFC] Since r32105 back in 2006, RegisterPass doesn't support passes without a default constructor. llvm-svn: 300866 --- llvm/include/llvm/PassSupport.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/llvm/include/llvm/PassSupport.h b/llvm/include/llvm/PassSupport.h index 852d79f..50e6b49 100644 --- a/llvm/include/llvm/PassSupport.h +++ b/llvm/include/llvm/PassSupport.h @@ -93,11 +93,7 @@ template Pass *callTargetMachineCtor(TargetMachine *TM) { /// static RegisterPass 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 tmp("passopt", "My Name"); +/// constructor exposed by the pass. /// template struct RegisterPass : public PassInfo { // Register Pass using default constructor... -- 2.7.4