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

Unified Diff: src/IceCfg.cpp

Issue 828873002: Subzero: Start writing out some relocation sections (text) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review fixes Created 5 years, 11 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
« no previous file with comments | « Makefile.standalone ('k') | src/IceDefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index a16b35c5643555c0107c1b89917ee5c0af7f9d1f..e8c74bacc3a08c3e44c460092ed950edfea76395 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -12,10 +12,12 @@
//
//===----------------------------------------------------------------------===//
+#include "assembler.h"
#include "IceCfg.h"
#include "IceCfgNode.h"
#include "IceClFlags.h"
#include "IceDefs.h"
+#include "IceELFObjectWriter.h"
#include "IceInst.h"
#include "IceLiveness.h"
#include "IceOperand.h"
@@ -459,10 +461,8 @@ void Cfg::emitIAS() {
// Now write the function to the file and track.
if (Ctx->getFlags().UseELFWriter) {
getAssembler<Assembler>()->alignFunction();
- // TODO(jvoung): Transfer remaining fixups too. They may need their
- // offsets adjusted.
- Ctx->getObjectWriter()->writeFunctionCode(
- MangledName, getInternal(), getAssembler<Assembler>()->getBufferView());
+ Ctx->getObjectWriter()->writeFunctionCode(MangledName, getInternal(),
+ getAssembler<Assembler>());
} else {
getAssembler<Assembler>()->emitIASBytes(Ctx);
}
« no previous file with comments | « Makefile.standalone ('k') | src/IceDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698