mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user