llvm.org GIT mirror llvm / 2b935d5
Clarify some constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33536 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Laskey 13 years ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
877877 EmitReference(Label.Tag, Label.Number);
878878 }
879879 void EmitReference(const char *Tag, unsigned Number) const {
880 if (TAI->getAddressSize() == 4)
880 if (TAI->getAddressSize() == sizeof(int32_t))
881881 O << TAI->getData32bitsDirective();
882882 else
883883 O << TAI->getData64bitsDirective();
885885 PrintLabelName(Tag, Number);
886886 }
887887 void EmitReference(const std::string &Name) const {
888 if (TAI->getAddressSize() == 4)
888 if (TAI->getAddressSize() == sizeof(int32_t))
889889 O << TAI->getData32bitsDirective();
890890 else
891891 O << TAI->getData64bitsDirective();
12071207 ///
12081208 void AddType(DIE *Entity, TypeDesc *TyDesc, CompileUnit *Unit) {
12091209 if (!TyDesc) {
1210 AddBasicType(Entity, Unit, "", DW_ATE_signed, 4);
1210 AddBasicType(Entity, Unit, "", DW_ATE_signed, sizeof(int32_t));
12111211 } else {
12121212 // Check for pre-existence.
12131213 DIEntry *&Slot = Unit->getDIEntrySlotFor(TyDesc);
12891289 Size = 0;
12901290
12911291 // Construct an anonymous type for index type.
1292 DIE *IndexTy = ConstructBasicType(Unit, "", DW_ATE_signed, 4);
1292 DIE *IndexTy = ConstructBasicType(Unit, "", DW_ATE_signed,
1293 sizeof(int32_t));
12931294
12941295 // Add subranges to array type.
12951296 for(unsigned i = 0, N = Elements.size(); i < N; ++i) {