Subzero: Write float/double constant pools directly to the ELF file.
Create the section, write the data and define the symbols in
the symbol table.
BUG=none
R=stichnot@chromium.org
Review URL: https://codereview.chromium.org/837393005
diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp
index a6acfb5..2a50a41 100644
--- a/src/IceTranslator.cpp
+++ b/src/IceTranslator.cpp
@@ -97,13 +97,8 @@
}
void Translator::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();
- }
- }
+ if (!Ctx->getFlags().DisableTranslation && Func)
+ Func->getTarget()->emitConstants();
}
void Translator::lowerGlobals(