| 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,
|
|
|