From 8cdc114fac354fc2c77c6175f0ff319c1c2f98e7 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 4 Oct 2013 22:40:05 +0000 Subject: [PATCH] Use Die->addValue and DIEIntegerOne directly when we want to add a flag. No functional change. llvm-svn: 191990 --- lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 9afa6e2fa9d..a487b10aa83 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -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.