Changed register ValueObjects to report their

expression path in a way that can actually be
resolved by "expr".

llvm-svn: 162574
This commit is contained in:
Sean Callanan 2012-08-24 18:21:05 +00:00
parent 6d675243b4
commit 6efc2ba7f8
2 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,9 @@ public:
virtual bool
ResolveValue (Scalar &scalar);
virtual void
GetExpressionPath (Stream &s, bool qualify_cxx_base_classes, GetExpressionPathFormat epformat = eGetExpressionPathFormatDereferencePointers);
protected:
virtual bool

View File

@ -430,4 +430,10 @@ ValueObjectRegister::ResolveValue (Scalar &scalar)
return false;
}
void
ValueObjectRegister::GetExpressionPath (Stream &s, bool qualify_cxx_base_classes, GetExpressionPathFormat epformat)
{
s.Printf("$%s", m_reg_info.name);
}