use Architecture::plan in BranchEvent ctor to determine acceptable types for address

This commit is contained in:
Joel Dice 2009-03-05 20:27:59 -07:00
parent a0e503ad0a
commit 762df17aa7

View File

@ -3426,7 +3426,16 @@ class BranchEvent: public Event {
{ {
address->addPredecessor(c, this); address->addPredecessor(c, this);
addRead(c, this, address, read(c, SiteMask(~0, ~0, AnyFrameIndex))); bool thunk;
uint8_t typeMask;
uint64_t registerMask;
c->arch->plan(type, BytesPerWord, &typeMask, &registerMask, &thunk);
assert(c, thunk == 0);
addRead(c, this, address, read
(c, SiteMask(typeMask, registerMask, AnyFrameIndex)));
} }
virtual const char* name() { virtual const char* name() {