OSDN Git Service

DebugInfo: Introduce DIBuilder::replaceTemporary()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 19:04:09 +0000 (19:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 11 Apr 2015 19:04:09 +0000 (19:04 +0000)
commit9b30c7bd3839553e104553b014dcf0812c405b4a
tree7dfc41b6d5e87a51d2df778ff2d65af405aecbd8
parent822147fcb22d4481278bd3d6d99a392f9715faf8
DebugInfo: Introduce DIBuilder::replaceTemporary()

Add `DIBuilder::replaceTemporary()` as a replacement for
`DIDescriptor::replaceAllUsesWith()`.  I'll update clang to use the new
method, and then come back to delete the original.

This method dispatches to `replaceAllUsesWith()` or
`replaceWithUniqued()`, depending on whether the replacement is actually
a different node from the original.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234695 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h