mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Update comments; getPassName no longer uses RTTI.
llvm-svn: 48369
This commit is contained in:
parent
9ca724cee0
commit
37a26f973f
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user