Chromium Code Reviews| Index: src/IceOperand.cpp |
| diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp |
| index b718ba50f445c15e801e3517d674022de3bf7e96..df4fb65397f4e49e365738ebca8e5cad8df231f0 100644 |
| --- a/src/IceOperand.cpp |
| +++ b/src/IceOperand.cpp |
| @@ -188,6 +188,11 @@ IceString Variable::getName() const { |
| return buf; |
| } |
| +void Variable::setName(IceString &NewName) { |
| + assert(Name.empty()); |
|
Jim Stichnoth
2014/09/10 18:44:23
Document that the assert is to be sure true renami
Karl
2014/09/10 21:14:33
Done.
|
| + Name = NewName; |
| +} |
| + |
| Variable Variable::asType(Type Ty) { |
| Variable V(Ty, DefNode, Number, Name); |
| V.RegNum = RegNum; |