Update comments to reflect how the new methods ended up being written.

llvm-svn: 221809
This commit is contained in:
Jason Molenda 2014-11-12 19:49:58 +00:00
parent 9f8d2b0995
commit 043109ee21
1 changed files with 3 additions and 4 deletions

View File

@ -295,25 +295,24 @@ public:
m_cfa_type = cfa_type;
}
// This should be used when GetCFAType() returns CFAIsRegisterPlusOffset
// If GetCFAType() is CFAIsRegisterPlusOffset, add GetCFAOffset to the reg value to get CFA value
// If GetCFAType() is CFAIsRegisterDereferenced, dereference the addr in the reg to get CFA value
uint32_t
GetCFARegister () const
{
return m_cfa_reg_num;
}
// This should be used when GetCFAType() is set to CFAIsRegisterPlusOffset
void
SetCFARegister (uint32_t reg_num);
// This should be used when GetCFAType() returns CFAIsRegisterPlusOffset
// This should not be used when GetCFAType() is CFAIsRegisterDereferenced; will return 0 in that case.
int32_t
GetCFAOffset () const
{
return m_cfa_offset;
}
// This should be used when GetCFAType() is set to CFAIsRegisterPlusOffset
void
SetCFAOffset (int32_t offset)
{