diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-04 14:58:56 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-04 14:58:56 +0000 | 
| commit | 36bf506ad3c99a309ca8bd73bd03563d8d068ac0 (patch) | |
| tree | b4dc751bcee540346911aa4115729eff2f991657 /lib/Bitcode/Reader/BitcodeReader.h | |
| parent | f9666f9b3a3d26810deae8cd54feb6e47ecee61a (diff) | |
Notes
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
| -rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.h | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.h b/lib/Bitcode/Reader/BitcodeReader.h index eefc7bdc28a8..7b3a1ae893c2 100644 --- a/lib/Bitcode/Reader/BitcodeReader.h +++ b/lib/Bitcode/Reader/BitcodeReader.h @@ -94,7 +94,7 @@ public:  class BitcodeReaderMDValueList {    std::vector<WeakVH> MDValuePtrs; -  LLVMContext& Context; +  LLVMContext &Context;  public:    BitcodeReaderMDValueList(LLVMContext& C) : Context(C) {} @@ -122,7 +122,7 @@ public:  };  class BitcodeReader : public ModuleProvider { -  LLVMContext& Context; +  LLVMContext &Context;    MemoryBuffer *Buffer;    BitstreamReader StreamFile;    BitstreamCursor Stream; @@ -163,6 +163,12 @@ class BitcodeReader : public ModuleProvider {    /// map contains info about where to find deferred function body (in the    /// stream) and what linkage the original function had.    DenseMap<Function*, std::pair<uint64_t, unsigned> > DeferredFunctionInfo; +   +  /// BlockAddrFwdRefs - These are blockaddr references to basic blocks.  These +  /// are resolved lazily when functions are loaded. +  typedef std::pair<unsigned, GlobalVariable*> BlockAddrRefTy; +  DenseMap<Function*, std::vector<BlockAddrRefTy> > BlockAddrFwdRefs; +    public:    explicit BitcodeReader(MemoryBuffer *buffer, LLVMContext& C)      : Context(C), Buffer(buffer), ErrorString(0), ValueList(C), MDValueList(C) {  | 
