mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Update comments; getPassName no longer uses RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d7a3541a05
commit
b973d5f9b5
@ -88,9 +88,7 @@ public:
|
|||||||
|
|
||||||
/// getPassName - Return a nice clean name for a pass. This usually
|
/// getPassName - Return a nice clean name for a pass. This usually
|
||||||
/// implemented in terms of the name that is registered by one of the
|
/// implemented in terms of the name that is registered by one of the
|
||||||
/// Registration templates, but can be overloaded directly, and if nothing
|
/// Registration templates, but can be overloaded directly.
|
||||||
/// else is available, C++ RTTI will be consulted to get a SOMEWHAT
|
|
||||||
/// intelligible name for the pass.
|
|
||||||
///
|
///
|
||||||
virtual const char *getPassName() const;
|
virtual const char *getPassName() const;
|
||||||
|
|
||||||
|
@ -43,8 +43,10 @@ void Pass::dumpPassStructure(unsigned Offset) {
|
|||||||
cerr << std::string(Offset*2, ' ') << getPassName() << "\n";
|
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 {
|
const char *Pass::getPassName() const {
|
||||||
if (const PassInfo *PI = getPassInfo())
|
if (const PassInfo *PI = getPassInfo())
|
||||||
return PI->getPassName();
|
return PI->getPassName();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user