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

Side by Side Diff: lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h

Issue 180483005: Fix PNaCl-local files after merging LLVM 3.4 (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@hs-merge-before-fixes
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « lib/Bitcode/NaCl/Reader/NaClBitcodeHeader.cpp ('k') | lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698