diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-03 15:40:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-03 15:40:42 +0000 |
commit | 32461e170b16d2f6cbcd04830bf68ce2a6372db5 (patch) | |
tree | 59c8813624c9072d2ecd14526658d6751e5a9674 /lib/Core/AddressSpace.cpp | |
parent | d55171601a0537506ddd05d37a1dabe372454a6d (diff) | |
download | klee-32461e170b16d2f6cbcd04830bf68ce2a6372db5.tar.gz |
Kill off specialized ref<> forwarding methods, in the interest of making it a
more standard reference counting wrapper. - The only interesting changes here are in Ref.h, everything else is just updating foo.method to use foo->method instead. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/AddressSpace.cpp')
-rw-r--r-- | lib/Core/AddressSpace.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Core/AddressSpace.cpp b/lib/Core/AddressSpace.cpp index fb032fd5..9a9a0235 100644 --- a/lib/Core/AddressSpace.cpp +++ b/lib/Core/AddressSpace.cpp @@ -73,7 +73,7 @@ bool AddressSpace::resolveOne(ExecutionState &state, ObjectPair &result, bool &success) { if (address.isConstant()) { - success = resolveOne(address.getConstantValue(), result); + success = resolveOne(address->getConstantValue(), result); return true; } else { TimerStatIncrementer timer(stats::resolveTime); @@ -83,7 +83,7 @@ bool AddressSpace::resolveOne(ExecutionState &state, ref<Expr> cex(0); if (!solver->getValue(state, address, cex)) return false; - unsigned example = (unsigned) cex.getConstantValue(); + unsigned example = (unsigned) cex->getConstantValue(); MemoryObject hack(example); const MemoryMap::value_type *res = objects.lookup_previous(&hack); @@ -165,7 +165,7 @@ bool AddressSpace::resolve(ExecutionState &state, double timeout) { if (p.isConstant()) { ObjectPair res; - if (resolveOne(p.getConstantValue(), res)) + if (resolveOne(p->getConstantValue(), res)) rl.push_back(res); return false; } else { @@ -190,7 +190,7 @@ bool AddressSpace::resolve(ExecutionState &state, ref<Expr> cex(0); if (!solver->getValue(state, p, cex)) return true; - unsigned example = (unsigned) cex.getConstantValue(); + unsigned example = (unsigned) cex->getConstantValue(); MemoryObject hack(example); MemoryMap::iterator oi = objects.upper_bound(&hack); |