Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: src/IceOperand.cpp

Issue 561823002: Fix symbol table handling in functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« src/IceOperand.h ('K') | « src/IceOperand.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698