diff options
| author | Jim Laskey <jlaskey@mac.com> | 2006-01-21 00:59:54 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2006-01-21 00:59:54 +0000 |
| commit | 45900baadb58907db9e832fdd97fac78632b9f48 (patch) | |
| tree | a0a0b95bc3a8e4e41a2d687d2a4ac619094908a3 /llvm | |
| parent | b17434dc1da9827ffaafdad385ffbebe836f7df3 (diff) | |
| download | bcm5719-llvm-45900baadb58907db9e832fdd97fac78632b9f48.tar.gz bcm5719-llvm-45900baadb58907db9e832fdd97fac78632b9f48.zip | |
Correct some simple errors.
llvm-svn: 25490
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/DwarfWriter.h | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/DwarfWriter.h b/llvm/include/llvm/CodeGen/DwarfWriter.h index 36225e603db..7d04e0abccf 100644 --- a/llvm/include/llvm/CodeGen/DwarfWriter.h +++ b/llvm/include/llvm/CodeGen/DwarfWriter.h @@ -994,7 +994,7 @@ public: EmitReference(Label.Tag, Label.Number); } void EmitReference(const char *Tag, unsigned Number) const; - void EmitReference(const std::string Name) const; + void EmitReference(const std::string &Name) const; /// EmitDifference - Emit the difference between two labels. Some /// assemblers do not behave with absolute expressions with data directives, diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index 0248bd5c0c5..a5424d048b4 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/DwarfWriter.cpp @@ -590,7 +590,7 @@ bool DIEAbbrev::operator==(const DIEAbbrev &DA) const { 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 @@ void DwarfWriter::EmitReference(const char *Tag, unsigned Number) const { 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 |

