[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp

Jim Laskey jlaskey at apple.com
Fri Jan 20 17:00:07 PST 2006



Changes in directory llvm/lib/CodeGen:

DwarfWriter.cpp updated: 1.10 -> 1.11
---
Log message:

Correct some simple errors.


---
Diffs of the changes:  (+2 -2)

 DwarfWriter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.10 llvm/lib/CodeGen/DwarfWriter.cpp:1.11
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.10	Fri Jan 20 15:02:36 2006
+++ llvm/lib/CodeGen/DwarfWriter.cpp	Fri Jan 20 18:59:54 2006
@@ -590,7 +590,7 @@
   
   for (unsigned i = 0, N = Data.size(); i < N; i++) {
     const DIEAbbrevData &AttrData = Data[i];
-    const DIEAbbrevData &DAAttrData = Data[i];
+    const DIEAbbrevData &DAAttrData = DA.Data[i];
     if (AttrData.getAttribute() != DAAttrData.getAttribute()) return false;
     if (AttrData.getForm() != DAAttrData.getForm()) return false;
   }
@@ -1110,7 +1110,7 @@
     
   PrintLabelName(Tag, Number);
 }
-void DwarfWriter::EmitReference(const std::string Name) const {
+void DwarfWriter::EmitReference(const std::string &Name) const {
   if (AddressSize == 4)
     O << Asm->Data32bitsDirective;
   else






More information about the llvm-commits mailing list