Changes in directory llvm/lib/CodeGen:
DwarfWriter.cpp updated: 1.115 -> 1.116 --- Log message: Clarify some constants. --- Diffs of the changes: (+5 -4) DwarfWriter.cpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) Index: llvm/lib/CodeGen/DwarfWriter.cpp diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.115 llvm/lib/CodeGen/DwarfWriter.cpp:1.116 --- llvm/lib/CodeGen/DwarfWriter.cpp:1.115 Thu Jan 25 09:45:58 2007 +++ llvm/lib/CodeGen/DwarfWriter.cpp Fri Jan 26 08:19:17 2007 @@ -878,7 +878,7 @@ EmitReference(Label.Tag, Label.Number); } void EmitReference(const char *Tag, unsigned Number) const { - if (TAI->getAddressSize() == 4) + if (TAI->getAddressSize() == sizeof(int32_t)) O << TAI->getData32bitsDirective(); else O << TAI->getData64bitsDirective(); @@ -886,7 +886,7 @@ PrintLabelName(Tag, Number); } void EmitReference(const std::string &Name) const { - if (TAI->getAddressSize() == 4) + if (TAI->getAddressSize() == sizeof(int32_t)) O << TAI->getData32bitsDirective(); else O << TAI->getData64bitsDirective(); @@ -1208,7 +1208,7 @@ /// void AddType(DIE *Entity, TypeDesc *TyDesc, CompileUnit *Unit) { if (!TyDesc) { - AddBasicType(Entity, Unit, "", DW_ATE_signed, 4); + AddBasicType(Entity, Unit, "", DW_ATE_signed, sizeof(int32_t)); } else { // Check for pre-existence. DIEntry *&Slot = Unit->getDIEntrySlotFor(TyDesc); @@ -1290,7 +1290,8 @@ Size = 0; // Construct an anonymous type for index type. - DIE *IndexTy = ConstructBasicType(Unit, "", DW_ATE_signed, 4); + DIE *IndexTy = ConstructBasicType(Unit, "", DW_ATE_signed, + sizeof(int32_t)); // Add subranges to array type. for(unsigned i = 0, N = Elements.size(); i < N; ++i) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits