summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-04 22:40:05 +0000
committerEric Christopher <echristo@gmail.com>2013-10-04 22:40:05 +0000
commitdccd32866bb00e7d7114f70a26e3493d1266d14c (patch)
treeb1c3c6f4b0a39f05459b408c3f9b04ebb22a48c7 /llvm/lib/CodeGen/AsmPrinter
parentdbc7a8a8a34b5b8ddc0e69bf9df29bfd6e1b3409 (diff)
downloadbcm5719-llvm-dccd32866bb00e7d7114f70a26e3493d1266d14c.tar.gz
bcm5719-llvm-dccd32866bb00e7d7114f70a26e3493d1266d14c.zip
Use Die->addValue and DIEIntegerOne directly when we want to add
a flag. No functional change. llvm-svn: 191990
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 9afa6e2fa9d..a487b10aa83 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud