1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Use Die->addValue and DIEIntegerOne directly when we want to add

a flag. No functional change.

llvm-svn: 191990
This commit is contained in:
Eric Christopher 2013-10-04 22:40:05 +00:00
parent 7d2e2df7f2
commit 8cdc114fac

View File

@ -100,10 +100,9 @@ int64_t CompileUnit::getDefaultLowerBound() const {
/// addFlag - Add a flag that is true.
void CompileUnit::addFlag(DIE *Die, uint16_t Attribute) {
if (DD->getDwarfVersion() >= 4)
Die->addValue(Attribute, dwarf::DW_FORM_flag_present,
DIEIntegerOne);
Die->addValue(Attribute, dwarf::DW_FORM_flag_present, DIEIntegerOne);
else
addUInt(Die, Attribute, dwarf::DW_FORM_flag, 1);
Die->addValue(Attribute, dwarf::DW_FORM_flag, DIEIntegerOne);
}
/// addUInt - Add an unsigned integer attribute data and value.