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

Unified Diff: src/PNaClTranslator.h

Issue 982403002: Subzero: Switch file reading to be based on a DataStreamer and MemoryObject. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: cleanup Created 5 years, 9 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 | « no previous file | src/PNaClTranslator.cpp » ('j') | src/PNaClTranslator.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/PNaClTranslator.h
diff --git a/src/PNaClTranslator.h b/src/PNaClTranslator.h
index 9162d59ab1993027598c6073510bf0ab0f88ab05..e2d423a002cca38d671b80ac168a09c8e5ead1a0 100644
--- a/src/PNaClTranslator.h
+++ b/src/PNaClTranslator.h
@@ -21,6 +21,7 @@
namespace llvm {
class MemoryBuffer;
+class MemoryObject;
} // end of namespace llvm
namespace Ice {
@@ -35,8 +36,9 @@ public:
// Reads the PNaCl bitcode file and translates to ICE, which is then
// converted to machine code. Sets ErrorStatus to 1 if any errors
- // occurred.
- void translate(const std::string &IRFilename);
+ // occurred. Takes ownership of the MemoryObject.
+ void translate(const std::string &IRFilename,
+ std::unique_ptr<llvm::MemoryObject> &&MemoryObject);
// Reads MemBuf, assuming it is the PNaCl bitcode contents of IRFilename.
void translateBuffer(const std::string &IRFilename,
« no previous file with comments | « no previous file | src/PNaClTranslator.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698