diff options
author | Eric Christopher <echristo@gmail.com> | 2013-10-04 22:40:05 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-10-04 22:40:05 +0000 |
commit | 9c0c9485808ba4280a62429700693c41fa304598 (patch) | |
tree | ad664c23e5ff5c8437de2f4d7fe9af84dc245c24 /lib | |
parent | 03c8f8fbd539e539796b0bd9824797f3240261d7 (diff) | |
download | external_llvm-9c0c9485808ba4280a62429700693c41fa304598.zip external_llvm-9c0c9485808ba4280a62429700693c41fa304598.tar.gz external_llvm-9c0c9485808ba4280a62429700693c41fa304598.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 9afa6e2..a487b10 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. |