Index: src/IceCfgNode.cpp |
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp |
index 767c9c375286a893e3c725efb1da1de629f74f26..292751d26dd0a8f6b2f3f743b12b230b3ec81091 100644 |
--- a/src/IceCfgNode.cpp |
+++ b/src/IceCfgNode.cpp |
@@ -12,6 +12,7 @@ |
// |
//===----------------------------------------------------------------------===// |
+#include "assembler.h" |
#include "IceCfg.h" |
#include "IceCfgNode.h" |
#include "IceInst.h" |
@@ -493,6 +494,10 @@ void CfgNode::emit(Cfg *Func) const { |
Str << Func->getContext()->mangleName(Func->getFunctionName()) << ":\n"; |
} |
Str << getAsmName() << ":\n"; |
+ if (Func->useIntegratedAssembler()) { |
+ Assembler *Asm = Func->getAssembler<Assembler>(); |
+ Asm->BindCfgNodeLabel(getIndex()); |
+ } |
for (InstPhi *Phi : Phis) { |
if (Phi->isDeleted()) |
continue; |
@@ -507,7 +512,7 @@ void CfgNode::emit(Cfg *Func) const { |
// suppress them. |
if (I->isRedundantAssign()) |
continue; |
- if (Func->UseIntegratedAssembler()) { |
+ if (Func->useIntegratedAssembler()) { |
I->emitIAS(Func); |
} else { |
I->emit(Func); |