mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Sink DwarfUnit::addExpr into DwarfCompileUnit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -820,4 +820,11 @@ void DwarfCompileUnit::applyVariableAttributes(const DbgVariable &Var,
|
|||||||
if (Var.isArtificial())
|
if (Var.isArtificial())
|
||||||
addFlag(VariableDie, dwarf::DW_AT_artificial);
|
addFlag(VariableDie, dwarf::DW_AT_artificial);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Add a Dwarf expression attribute data and value.
|
||||||
|
void DwarfCompileUnit::addExpr(DIELoc &Die, dwarf::Form Form,
|
||||||
|
const MCExpr *Expr) {
|
||||||
|
DIEValue *Value = new (DIEValueAllocator) DIEExpr(Expr);
|
||||||
|
Die.addValue((dwarf::Attribute)0, Form, Value);
|
||||||
|
}
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
@ -211,6 +211,9 @@ public:
|
|||||||
/// Add a Dwarf loclistptr attribute data and value.
|
/// Add a Dwarf loclistptr attribute data and value.
|
||||||
void addLocationList(DIE &Die, dwarf::Attribute Attribute, unsigned Index);
|
void addLocationList(DIE &Die, dwarf::Attribute Attribute, unsigned Index);
|
||||||
void applyVariableAttributes(const DbgVariable &Var, DIE &VariableDie);
|
void applyVariableAttributes(const DbgVariable &Var, DIE &VariableDie);
|
||||||
|
|
||||||
|
/// Add a Dwarf expression attribute data and value.
|
||||||
|
void addExpr(DIELoc &Die, dwarf::Form Form, const MCExpr *Expr);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
@ -225,13 +225,6 @@ void DwarfUnit::addLocalString(DIE &Die, dwarf::Attribute Attribute,
|
|||||||
Die.addValue(Attribute, dwarf::DW_FORM_strp, Str);
|
Die.addValue(Attribute, dwarf::DW_FORM_strp, Str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// addExpr - Add a Dwarf expression attribute data and value.
|
|
||||||
///
|
|
||||||
void DwarfUnit::addExpr(DIELoc &Die, dwarf::Form Form, const MCExpr *Expr) {
|
|
||||||
DIEValue *Value = new (DIEValueAllocator) DIEExpr(Expr);
|
|
||||||
Die.addValue((dwarf::Attribute)0, Form, Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// addLabel - Add a Dwarf label attribute data and value.
|
/// addLabel - Add a Dwarf label attribute data and value.
|
||||||
///
|
///
|
||||||
void DwarfUnit::addLabel(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
void DwarfUnit::addLabel(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
||||||
|
@ -213,9 +213,6 @@ public:
|
|||||||
void addLocalString(DIE &Die, dwarf::Attribute Attribute,
|
void addLocalString(DIE &Die, dwarf::Attribute Attribute,
|
||||||
StringRef Str);
|
StringRef Str);
|
||||||
|
|
||||||
/// addExpr - Add a Dwarf expression attribute data and value.
|
|
||||||
void addExpr(DIELoc &Die, dwarf::Form Form, const MCExpr *Expr);
|
|
||||||
|
|
||||||
/// addLabel - Add a Dwarf label attribute data and value.
|
/// addLabel - Add a Dwarf label attribute data and value.
|
||||||
void addLabel(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
void addLabel(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
||||||
const MCSymbol *Label);
|
const MCSymbol *Label);
|
||||||
|
Reference in New Issue
Block a user