| OLD | NEW |
| 1 //===- BitcodeReader.h - Internal BitcodeReader impl ------------*- C++ -*-===// | 1 //===- BitcodeReader.h - Internal BitcodeReader impl ------------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This header defines the BitcodeReader class. | 10 // This header defines the BitcodeReader class. |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 } | 257 } |
| 258 bool getValue(SmallVector<uint64_t, 64> &Record, unsigned &Slot, | 258 bool getValue(SmallVector<uint64_t, 64> &Record, unsigned &Slot, |
| 259 Type *Ty, Value *&ResVal) { | 259 Type *Ty, Value *&ResVal) { |
| 260 if (Slot == Record.size()) return true; | 260 if (Slot == Record.size()) return true; |
| 261 unsigned ValNo = (unsigned)Record[Slot++]; | 261 unsigned ValNo = (unsigned)Record[Slot++]; |
| 262 ResVal = getFnValueByID(ValNo, Ty); | 262 ResVal = getFnValueByID(ValNo, Ty); |
| 263 return ResVal == 0; | 263 return ResVal == 0; |
| 264 } | 264 } |
| 265 | 265 |
| 266 | 266 |
| 267 bool ParseModule(); | 267 bool ParseModule(bool Resume); |
| 268 bool ParseAttributeBlock(); | 268 bool ParseAttributeBlock(); |
| 269 bool ParseTypeTable(); | 269 bool ParseTypeTable(); |
| 270 bool ParseOldTypeTable(); // FIXME: Remove in LLVM 3.1 | 270 bool ParseOldTypeTable(); // FIXME: Remove in LLVM 3.1 |
| 271 bool ParseTypeTableBody(); | 271 bool ParseTypeTableBody(); |
| 272 | 272 |
| 273 bool ParseOldTypeSymbolTable(); // FIXME: Remove in LLVM 3.1 | 273 bool ParseOldTypeSymbolTable(); // FIXME: Remove in LLVM 3.1 |
| 274 bool ParseValueSymbolTable(); | 274 bool ParseValueSymbolTable(); |
| 275 bool ParseConstants(); | 275 bool ParseConstants(); |
| 276 bool RememberAndSkipFunctionBody(); | 276 bool RememberAndSkipFunctionBody(); |
| 277 bool ParseFunctionBody(Function *F); | 277 bool ParseFunctionBody(Function *F); |
| 278 bool ResolveGlobalAndAliasInits(); | 278 bool ResolveGlobalAndAliasInits(); |
| 279 bool ParseMetadata(); | 279 bool ParseMetadata(); |
| 280 bool ParseMetadataAttachment(); | 280 bool ParseMetadataAttachment(); |
| 281 bool ParseModuleTriple(std::string &Triple); | 281 bool ParseModuleTriple(std::string &Triple); |
| 282 bool InitStream(); | 282 bool InitStream(); |
| 283 bool InitStreamFromBuffer(); | 283 bool InitStreamFromBuffer(); |
| 284 bool InitLazyStream(); | 284 bool InitLazyStream(); |
| 285 bool SuspendModuleParse(); |
| 286 bool FindFunctionInStream(Function *F, |
| 287 DenseMap<Function*, uint64_t>::iterator DFII); |
| 288 uint64_t NextUnreadBit; |
| 285 }; | 289 }; |
| 286 | 290 |
| 287 } // End llvm namespace | 291 } // End llvm namespace |
| 288 | 292 |
| 289 #endif | 293 #endif |
| OLD | NEW |