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 | 5285b5ea2f49928bbb40283dccb739209504e7b3 (patch) | |
tree | 2d682b08c74ba42d428b04bb6d0ce7285a84a0a3 /llvm/lib/Bitcode/Reader/BitcodeReader.h | |
parent | 1fc27f0cdb5e6494fd24153a67692acc00cb497d (diff) | |
download | bcm5719-llvm-5285b5ea2f49928bbb40283dccb739209504e7b3.tar.gz bcm5719-llvm-5285b5ea2f49928bbb40283dccb739209504e7b3.zip |
add reader logic for terminator instrs.
llvm-svn: 36642
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.h b/llvm/lib/Bitcode/Reader/BitcodeReader.h index 36972734e80..e537310ecaf 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.h +++ b/llvm/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(); |