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. |