diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 23:13:44 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 23:13:44 +0000 |
commit | 4434ed44c45c87a72b7a0bf2f91211f895022b91 (patch) | |
tree | dc0e25b2f2b2706339e64e4f654d2a442ab97018 /lib/Bitcode/Reader/BitcodeReader.h | |
parent | 82c32c42724f92b899287b4f34029eb1170c43f9 (diff) | |
download | external_llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.zip external_llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.gz external_llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.bz2 |
Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the
moment, that I will need to make far-reaching changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 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, 2 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.h b/lib/Bitcode/Reader/BitcodeReader.h index dd12375..662631b 100644 --- a/lib/Bitcode/Reader/BitcodeReader.h +++ b/lib/Bitcode/Reader/BitcodeReader.h @@ -86,7 +86,7 @@ public: }; class BitcodeReader : public ModuleProvider { - const LLVMContext& Context; + LLVMContext& Context; MemoryBuffer *Buffer; BitstreamReader StreamFile; BitstreamCursor Stream; @@ -125,7 +125,7 @@ class BitcodeReader : public ModuleProvider { /// stream) and what linkage the original function had. DenseMap<Function*, std::pair<uint64_t, unsigned> > DeferredFunctionInfo; public: - explicit BitcodeReader(MemoryBuffer *buffer, const LLVMContext& C) + explicit BitcodeReader(MemoryBuffer *buffer, LLVMContext& C) : Context(C), Buffer(buffer), ErrorString(0) { HasReversedFunctionsWithBodies = false; } |