projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c8f8f
)
Use Die->addValue and DIEIntegerOne directly when we want to add
author
Eric Christopher
<echristo@gmail.com>
Fri, 4 Oct 2013 22:40:05 +0000
(22:40 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Fri, 4 Oct 2013 22:40:05 +0000
(22:40 +0000)
a flag. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191990
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 9afa6e2fa9d93daef7cf1f37e9f22b388b2be898..a487b10aa8364bda96c49a1ab53a5e57c6b375db 100644
(file)
--- 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.