Index: src/IceTranslator.cpp |
diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp |
index 2a50a410c90a0db122a87e32ca846d51b5df8d30..a6acfb545e57f77891f6bc0e743444981ad04870 100644 |
--- a/src/IceTranslator.cpp |
+++ b/src/IceTranslator.cpp |
@@ -97,8 +97,13 @@ void Translator::translateFcn(Cfg *Fcn) { |
} |
void Translator::emitConstants() { |
- if (!Ctx->getFlags().DisableTranslation && Func) |
- Func->getTarget()->emitConstants(); |
+ if (!Ctx->getFlags().DisableTranslation && Func) { |
+ if (Ctx->getFlags().UseELFWriter) { |
+ // TODO(jvoung): create the rodata.cst.{4,8} sections for UseELFWriter. |
+ } else { |
+ Func->getTarget()->emitConstants(); |
+ } |
+ } |
} |
void Translator::lowerGlobals( |