Implement handling of DW_AT_artificial for DIEFormalParameter.
This commit is contained in:
@@ -872,6 +872,15 @@ DIEFormalParameter::AddAttribute_abstract_origin(uint16 attributeName,
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
DIEFormalParameter::AddAttribute_artificial(uint16 attributeName,
|
||||
const AttributeValue& value)
|
||||
{
|
||||
fArtificial = value.flag;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
DIEFormalParameter::AddAttribute_const_value(uint16 attributeName,
|
||||
const AttributeValue& value)
|
||||
|
||||
@@ -558,16 +558,19 @@ public:
|
||||
const ConstantAttributeValue* ConstValue() const
|
||||
{ return &fValue; }
|
||||
|
||||
bool IsArtificial() const { return fArtificial; }
|
||||
|
||||
virtual status_t AddAttribute_abstract_origin(
|
||||
uint16 attributeName,
|
||||
const AttributeValue& value);
|
||||
virtual status_t AddAttribute_artificial(uint16 attributeName,
|
||||
const AttributeValue& value);
|
||||
virtual status_t AddAttribute_const_value(uint16 attributeName,
|
||||
const AttributeValue& value);
|
||||
virtual status_t AddAttribute_type(uint16 attributeName,
|
||||
const AttributeValue& value);
|
||||
|
||||
// TODO:
|
||||
// DW_AT_artificial
|
||||
// DW_AT_default_value
|
||||
// DW_AT_endianity
|
||||
// DW_AT_is_optional
|
||||
@@ -579,6 +582,7 @@ private:
|
||||
DebugInfoEntry* fAbstractOrigin;
|
||||
DIEType* fType;
|
||||
ConstantAttributeValue fValue;
|
||||
bool fArtificial;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user