diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-31 22:42:03 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-31 22:42:03 +0000 |
commit | a7963a59b39e372ef130803d1eaf0ee66de5efe2 (patch) | |
tree | 93f9277b2fa45d14cc6b67e1ce2998c62e474a06 /include/llvm | |
parent | 2cda9399deed8a50e95848716212b500c5b2d396 (diff) | |
download | external_llvm-a7963a59b39e372ef130803d1eaf0ee66de5efe2.zip external_llvm-a7963a59b39e372ef130803d1eaf0ee66de5efe2.tar.gz external_llvm-a7963a59b39e372ef130803d1eaf0ee66de5efe2.tar.bz2 |
constified several pointer arguments for methods in the Deserializer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Bitcode/Deserialize.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/Deserialize.h b/include/llvm/Bitcode/Deserialize.h index 72367e3..f883a5a 100644 --- a/include/llvm/Bitcode/Deserialize.h +++ b/include/llvm/Bitcode/Deserialize.h @@ -57,7 +57,7 @@ class Deserializer { BPatchEntry(void* P) : Ptr(reinterpret_cast<uintptr_t>(P)) {} bool hasFinalPtr() const { return Ptr & 0x1 ? false : true; } - void setFinalPtr(BPNode*& FreeList, void* P); + void setFinalPtr(BPNode*& FreeList, const void* P); BPNode* getBPNode() const { assert (!hasFinalPtr()); @@ -152,8 +152,11 @@ public: return *p; } + void RegisterPtr(unsigned PtrId, const void* Ptr); - void RegisterPtr(unsigned PtrId, void* Ptr); + void RegisterPtr(const void* Ptr) { + RegisterPtr(ReadInt(),Ptr); + } private: void ReadRecord(); |