OLD | NEW |
1 //===- NaClBitcodeReader.h ------------------------------------*- C++ -*-===// | 1 //===- NaClBitcodeReader.h ------------------------------------*- C++ -*-===// |
2 // Internal NaClBitcodeReader implementation | 2 // Internal NaClBitcodeReader implementation |
3 // | 3 // |
4 // The LLVM Compiler Infrastructure | 4 // The LLVM Compiler Infrastructure |
5 // | 5 // |
6 // This file is distributed under the University of Illinois Open Source | 6 // This file is distributed under the University of Illinois Open Source |
7 // License. See LICENSE.TXT for details. | 7 // License. See LICENSE.TXT for details. |
8 // | 8 // |
9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
10 // | 10 // |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } | 218 } |
219 | 219 |
220 void FreeState(); | 220 void FreeState(); |
221 | 221 |
222 /// setBufferOwned - If this is true, the reader will destroy the MemoryBuffer | 222 /// setBufferOwned - If this is true, the reader will destroy the MemoryBuffer |
223 /// when the reader is destroyed. | 223 /// when the reader is destroyed. |
224 void setBufferOwned(bool Owned) { BufferOwned = Owned; } | 224 void setBufferOwned(bool Owned) { BufferOwned = Owned; } |
225 | 225 |
226 virtual bool isMaterializable(const GlobalValue *GV) const; | 226 virtual bool isMaterializable(const GlobalValue *GV) const; |
227 virtual bool isDematerializable(const GlobalValue *GV) const; | 227 virtual bool isDematerializable(const GlobalValue *GV) const; |
228 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0); | 228 virtual error_code Materialize(GlobalValue *GV); |
229 virtual bool MaterializeModule(Module *M, std::string *ErrInfo = 0); | 229 virtual error_code MaterializeModule(Module *M); |
230 virtual void Dematerialize(GlobalValue *GV); | 230 virtual void Dematerialize(GlobalValue *GV); |
231 | 231 |
232 bool Error(const std::string &Str) { | 232 bool Error(const std::string &Str) { |
233 ErrorString = Str; | 233 ErrorString = Str; |
234 return true; | 234 return true; |
235 } | 235 } |
236 const std::string &getErrorString() const { return ErrorString; } | 236 const std::string &getErrorString() const { return ErrorString; } |
237 | 237 |
238 /// @brief Main interface to parsing a bitcode buffer. | 238 /// @brief Main interface to parsing a bitcode buffer. |
239 /// @returns true if an error occurred. | 239 /// @returns true if an error occurred. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 bool InitStream(); | 334 bool InitStream(); |
335 bool InitStreamFromBuffer(); | 335 bool InitStreamFromBuffer(); |
336 bool InitLazyStream(); | 336 bool InitLazyStream(); |
337 bool FindFunctionInStream(Function *F, | 337 bool FindFunctionInStream(Function *F, |
338 DenseMap<Function*, uint64_t>::iterator DeferredFunctionInfoIterator); | 338 DenseMap<Function*, uint64_t>::iterator DeferredFunctionInfoIterator); |
339 }; | 339 }; |
340 | 340 |
341 } // End llvm namespace | 341 } // End llvm namespace |
342 | 342 |
343 #endif | 343 #endif |
OLD | NEW |