mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Use Die->addValue and DIEIntegerOne directly when we want to add
a flag. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03c8f8fbd5
commit
9c0c948580
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user