diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-30 19:42:10 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-30 19:42:10 +0000 |
commit | aad5c3b81befe82691b544484923e718512f5216 (patch) | |
tree | b5c466dd3bb5f8b8a37b5ba37f5255b315ba22ec /llvm/lib/IR/DebugInfo.cpp | |
parent | e5c2d919b6262ad60909e331a7d4707a0be1cd1a (diff) | |
download | bcm5719-llvm-aad5c3b81befe82691b544484923e718512f5216.tar.gz bcm5719-llvm-aad5c3b81befe82691b544484923e718512f5216.zip |
Debug Info: constify and rename from generateRef to getRef.
No functionality change.
llvm-svn: 191696
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index e5a92ab15d9..42267081c95 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -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; } |