mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-21 02:25:13 +00:00
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
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user