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

Unified Diff: src/PNaClTranslator.h

Issue 800883006: Add ability to test parsing of bitcode records in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in last patch set. 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 | « src/IceClFlags.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »
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 dea7d43fdaebedfee355163bd865da964ea9c9e7..5738f113e2372f1d678d757b0bc51132eda0575b 100644
--- a/src/PNaClTranslator.h
+++ b/src/PNaClTranslator.h
@@ -19,6 +19,10 @@
#include "IceTranslator.h"
+namespace llvm {
+class MemoryBuffer;
+} // end of namespace llvm
+
namespace Ice {
class PNaClTranslator : public Translator {
@@ -28,10 +32,15 @@ class PNaClTranslator : public Translator {
public:
PNaClTranslator(GlobalContext *Ctx, const ClFlags &Flags)
: Translator(Ctx, Flags) {}
+
// Reads the PNaCl bitcode file and translates to ICE, which is then
// converted to machine code. Sets ErrorStatus to true if any
// errors occurred.
void translate(const std::string &IRFilename);
+
+ // Reads MemBuf, assuming it is the PNaCl bitcode contents of IRFilename.
+ void translateBuffer(const std::string &IRFilename,
+ llvm::MemoryBuffer *MemBuf);
};
} // end of namespace Ice
« no previous file with comments | « src/IceClFlags.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698