mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
Added special version of ReadPtr() that returns a deserialized pointer
by value. This version prohibits backpatching of pointers, so it useful when a pointee is always known to be deserialized beforehand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
586504d5ed
commit
18b5ddb5bf
@ -141,7 +141,10 @@ public:
|
||||
template <typename T>
|
||||
void ReadPtr(const T*& PtrRef, bool AllowBackpatch = true) {
|
||||
ReadPtr(const_cast<T*&>(PtrRef), AllowBackpatch);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T* ReadPtr() { T* x; ReadPtr<T>(x,false); return x; }
|
||||
|
||||
void ReadUIntPtr(uintptr_t& PtrRef, bool AllowBackpatch = true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user