mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
LLVMContext-ify the bitcode reader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -44,8 +44,9 @@ class BitcodeReaderValueList {
|
||||
/// number that holds the resolved value.
|
||||
typedef std::vector<std::pair<Constant*, unsigned> > ResolveConstantsTy;
|
||||
ResolveConstantsTy ResolveConstants;
|
||||
LLVMContext& Context;
|
||||
public:
|
||||
BitcodeReaderValueList() {}
|
||||
BitcodeReaderValueList(LLVMContext& C) : Context(C) {}
|
||||
~BitcodeReaderValueList() {
|
||||
assert(ResolveConstants.empty() && "Constants not resolved?");
|
||||
}
|
||||
@ -126,7 +127,7 @@ class BitcodeReader : public ModuleProvider {
|
||||
DenseMap<Function*, std::pair<uint64_t, unsigned> > DeferredFunctionInfo;
|
||||
public:
|
||||
explicit BitcodeReader(MemoryBuffer *buffer, LLVMContext& C)
|
||||
: Context(C), Buffer(buffer), ErrorString(0) {
|
||||
: Context(C), Buffer(buffer), ErrorString(0), ValueList(C) {
|
||||
HasReversedFunctionsWithBodies = false;
|
||||
}
|
||||
~BitcodeReader() {
|
||||
|
Reference in New Issue
Block a user