diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-02 05:46:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-02 05:46:45 +0000 |
commit | f4c8e5243376af58e52c4a0930d838509bbbea2f (patch) | |
tree | 682b62da284f4be02131f59fc3078e0795b8e981 /lib/Bitcode/Reader/BitcodeReader.h | |
parent | 01ff65fb3989fd8b302b55c4743b778f6927cb73 (diff) |
add reader logic for terminator instrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.h b/lib/Bitcode/Reader/BitcodeReader.h index 36972734e8..e537310eca 100644 --- a/lib/Bitcode/Reader/BitcodeReader.h +++ b/lib/Bitcode/Reader/BitcodeReader.h @@ -132,6 +132,10 @@ private: Value *getFnValueByID(unsigned ID, const Type *Ty) { return ValueList.getValueFwdRef(ID, Ty); } + BasicBlock *getBasicBlock(unsigned ID) const { + if (ID >= FunctionBBs.size()) return 0; // Invalid ID + return FunctionBBs[ID]; + } bool ParseModule(const std::string &ModuleID); bool ParseTypeTable(); |