aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit808947fa9f3b4ebbccc20562f973971e527d41e6 (patch)
tree6e585457bb3c91974b82d033a547c97f2add726d /lib
parent6a75ecc3cfbc5ee32064d7e50f63274a6636899a (diff)
downloadexternal_llvm-808947fa9f3b4ebbccc20562f973971e527d41e6.zip
external_llvm-808947fa9f3b4ebbccc20562f973971e527d41e6.tar.gz
external_llvm-808947fa9f3b4ebbccc20562f973971e527d41e6.tar.bz2
Update comments; getPassName no longer uses RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Pass.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp
index e3d94c3..a6f126a 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();