[llvm] r191990 - Use Die->addValue and DIEIntegerOne directly when we want to add

Eric Christopher echristo at gmail.com
Fri Oct 4 15:40:05 PDT 2013


Author: echristo
Date: Fri Oct  4 17:40:05 2013
New Revision: 191990

URL: http://llvm.org/viewvc/llvm-project?rev=191990&view=rev
Log:
Use Die->addValue and DIEIntegerOne directly when we want to add
a flag. No functional change.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=191990&r1=191989&r2=191990&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Oct  4 17:40:05 2013
@@ -100,10 +100,9 @@ int64_t CompileUnit::getDefaultLowerBoun
 /// 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.





More information about the llvm-commits mailing list