aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-14 18:27:04 +0000
committerDan Gohman <gohman@apple.com>2008-03-14 18:27:04 +0000
commitb973d5f9b59f75854493bc37a9eb0f3032be0864 (patch)
tree6e585457bb3c91974b82d033a547c97f2add726d
parentd7a3541a059d8b2b17b67ea4e8d2bfaada6d4bdb (diff)
Update comments; getPassName no longer uses RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48369 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Pass.h4
-rw-r--r--lib/VMCore/Pass.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 8243d2aa25..5948922f66 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -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;
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp
index e3d94c3505..a6f126ab61 100644
--- a/lib/VMCore/Pass.cpp
+++ b/lib/VMCore/Pass.cpp
@@ -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();