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 | 736832107b64a80da1623868e7c16cb97d7ee826 (patch) | |
tree | 541f63706f177eeded1cdd1c382d105ad4877f4b /lib/CodeGen/DwarfWriter.cpp | |
parent | 4002017e6847a2d8fef7ba2cfe83a8ef2ce6a038 (diff) |
Correct some simple errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 0248bd5c0c..a5424d048b 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/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 |