[llvm-commits] [llvm] r48369 - in /llvm/trunk: include/llvm/Pass.h lib/VMCore/Pass.cpp
Dan Gohman
gohman at apple.com
Fri Mar 14 11:27:04 PDT 2008
Author: djg
Date: Fri Mar 14 13:27:04 2008
New Revision: 48369
URL: http://llvm.org/viewvc/llvm-project?rev=48369&view=rev
Log:
Update comments; getPassName no longer uses RTTI.
Modified:
llvm/trunk/include/llvm/Pass.h
llvm/trunk/lib/VMCore/Pass.cpp
Modified: llvm/trunk/include/llvm/Pass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Pass.h?rev=48369&r1=48368&r2=48369&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Fri Mar 14 13:27:04 2008
@@ -88,9 +88,7 @@
/// 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;
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=48369&r1=48368&r2=48369&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Fri Mar 14 13:27:04 2008
@@ -43,8 +43,10 @@
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();
More information about the llvm-commits
mailing list