Debug Info: constify and rename from generateRef to getRef.

No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Manman Ren
2013-09-30 19:42:10 +00:00
parent 5be81238f0
commit e5388399c7
3 changed files with 11 additions and 11 deletions

View File

@ -725,7 +725,7 @@ void DICompositeType::addMember(DIDescriptor D) {
/// Generate a reference to this DIType. Uses the type identifier instead
/// of the actual MDNode if possible, to help type uniquing.
DIScopeRef DIScope::generateRef() {
DIScopeRef DIScope::getRef() const {
if (!isCompositeType())
return DIScopeRef(*this);
DICompositeType DTy(DbgNode);
@ -737,7 +737,7 @@ DIScopeRef DIScope::generateRef() {
/// \brief Set the containing type.
void DICompositeType::setContainingType(DICompositeType ContainingType) {
TrackingVH<MDNode> N(*this);
N->replaceOperandWith(12, ContainingType.generateRef());
N->replaceOperandWith(12, ContainingType.getRef());
DbgNode = N;
}