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

Unified Diff: src/IceCfgNode.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/IceCfgNode.cpp
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index 696a2f0b87ad9fb948535f3ded3d0ece2a0ccfe2..50b4487f879f6a4e2908aa4324f411d4f78044ca 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -34,6 +34,11 @@ IceString CfgNode::getName() const {
return buf;
}
+void CfgNode::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;
+}
+
// Adds an instruction to either the Phi list or the regular
// instruction list. Validates that all Phis are added before all
// regular instructions.

Powered by Google App Engine
This is Rietveld 408576698