[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp
Jim Laskey
jlaskey at apple.com
Fri Jan 20 17:13:31 PST 2006
Changes in directory llvm/lib/CodeGen:
DwarfWriter.cpp updated: 1.11 -> 1.12
---
Log message:
Simplify search for abbreviations.
---
Diffs of the changes: (+2 -10)
DwarfWriter.cpp | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.11 llvm/lib/CodeGen/DwarfWriter.cpp:1.12
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.11 Fri Jan 20 18:59:54 2006
+++ llvm/lib/CodeGen/DwarfWriter.cpp Fri Jan 20 19:13:18 2006
@@ -589,10 +589,7 @@
if (Data.size() != DA.Data.size()) return false;
for (unsigned i = 0, N = Data.size(); i < N; i++) {
- const DIEAbbrevData &AttrData = Data[i];
- const DIEAbbrevData &DAAttrData = DA.Data[i];
- if (AttrData.getAttribute() != DAAttrData.getAttribute()) return false;
- if (AttrData.getForm() != DAAttrData.getForm()) return false;
+ if (Data[i] != DA.Data[i]) return false;
}
return true;
@@ -606,12 +603,7 @@
if (Data.size() != DA.Data.size()) return Data.size() < DA.Data.size();
for (unsigned i = 0, N = Data.size(); i < N; i++) {
- const DIEAbbrevData &AttrData = Data[i];
- const DIEAbbrevData &DAAttrData = DA.Data[i];
- if (AttrData.getAttribute() != DAAttrData.getAttribute())
- return AttrData.getAttribute() < DAAttrData.getAttribute();
- if (AttrData.getForm() != DAAttrData.getForm())
- return AttrData.getForm() < DAAttrData.getForm();
+ if (Data[i] != DA.Data[i]) return Data[i] < DA.Data[i];
}
return false;
More information about the llvm-commits
mailing list