Update comments; getPassName no longer uses RTTI.
authorDan Gohman <gohman@apple.com>
Fri, 14 Mar 2008 18:27:04 +0000 (18:27 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 14 Mar 2008 18:27:04 +0000 (18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48369 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Pass.h
lib/VMCore/Pass.cpp

index 8243d2aa25b1a746cd675e22b5f409579e3ace4e..5948922f669c991cdf283936c6a872f9beb38aa9 100644 (file)
@@ -88,9 +88,7 @@ public:
 
   /// getPassName - Return a nice clean name for a pass.  This usually
   /// implemented in terms of the name that is registered by one of the
-  /// Registration templates, but can be overloaded directly, and if nothing
-  /// else is available, C++ RTTI will be consulted to get a SOMEWHAT
-  /// intelligible name for the pass.
+  /// Registration templates, but can be overloaded directly.
   ///
   virtual const char *getPassName() const;
 
index e3d94c35054de7009a1c6192439ca1967ddddb44..a6f126ab61077dd135530bae8078cfbcd2bd6118 100644 (file)
@@ -43,8 +43,10 @@ void Pass::dumpPassStructure(unsigned Offset) {
   cerr << std::string(Offset*2, ' ') << getPassName() << "\n";
 }
 
-// getPassName - Use C++ RTTI to get a SOMEWHAT intelligible name for the pass.
-//
+/// getPassName - Return a nice clean name for a pass.  This usually
+/// implemented in terms of the name that is registered by one of the
+/// Registration templates, but can be overloaded directly.
+///
 const char *Pass::getPassName() const {
   if (const PassInfo *PI = getPassInfo())
     return PI->getPassName();