summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-09-30 19:42:10 +0000
committerManman Ren <manman.ren@gmail.com>2013-09-30 19:42:10 +0000
commitaad5c3b81befe82691b544484923e718512f5216 (patch)
treeb5c466dd3bb5f8b8a37b5ba37f5255b315ba22ec /llvm/lib/IR/DebugInfo.cpp
parente5c2d919b6262ad60909e331a7d4707a0be1cd1a (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud