mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] Move ValueBase::RAUW from SIL.cpp => SILValue.cpp.
This commit is contained in:
@@ -27,17 +27,9 @@
|
||||
#include "clang/AST/Attr.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/DeclObjC.h"
|
||||
|
||||
using namespace swift;
|
||||
|
||||
void ValueBase::replaceAllUsesWith(ValueBase *RHS) {
|
||||
assert(this != RHS && "Cannot RAUW a value with itself");
|
||||
while (!use_empty()) {
|
||||
Operand *Op = *use_begin();
|
||||
Op->set(RHS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SILUndef *SILUndef::get(SILType Ty, SILModule *M) {
|
||||
// Unique these.
|
||||
SILUndef *&Entry = M->UndefValues[Ty];
|
||||
|
||||
Reference in New Issue
Block a user