@@ -179,7 +179,7 @@ Expected<StringRef> ArchiveMemberHeader::getName(uint64_t Size) const {
179
179
180
180
// GNU long file names end with a "/\n".
181
181
if (Parent->kind () == Archive::K_GNU ||
182
- Parent->kind () == Archive::K_MIPS64 ) {
182
+ Parent->kind () == Archive::K_GNU64 ) {
183
183
StringRef::size_type End = StringRef (addr).find (' \n ' );
184
184
return StringRef (addr, End - 1 );
185
185
}
@@ -338,7 +338,7 @@ Archive::Child::Child(const Archive *Parent, const char *Start, Error *Err)
338
338
339
339
ErrorAsOutParameter ErrAsOutParam (Err);
340
340
341
- // If there was an error in the construction of the Header
341
+ // If there was an error in the construction of the Header
342
342
// then just return with the error now set.
343
343
if (*Err)
344
344
return ;
@@ -698,7 +698,7 @@ Archive::Archive(MemoryBufferRef Source, Error &Err)
698
698
}
699
699
700
700
if (Name == " //" ) {
701
- Format = has64SymTable ? K_MIPS64 : K_GNU;
701
+ Format = has64SymTable ? K_GNU64 : K_GNU;
702
702
// The string table is never an external member, but we still
703
703
// must check any Expected<> return value.
704
704
Expected<StringRef> BufOrErr = C->getBuffer ();
@@ -715,7 +715,7 @@ Archive::Archive(MemoryBufferRef Source, Error &Err)
715
715
}
716
716
717
717
if (Name[0 ] != ' /' ) {
718
- Format = has64SymTable ? K_MIPS64 : K_GNU;
718
+ Format = has64SymTable ? K_GNU64 : K_GNU;
719
719
setFirstRegular (*C);
720
720
Err = Error::success ();
721
721
return ;
@@ -797,14 +797,14 @@ StringRef Archive::Symbol::getName() const {
797
797
Expected<Archive::Child> Archive::Symbol::getMember () const {
798
798
const char *Buf = Parent->getSymbolTable ().begin ();
799
799
const char *Offsets = Buf;
800
- if (Parent->kind () == K_MIPS64 || Parent->kind () == K_DARWIN64)
800
+ if (Parent->kind () == K_GNU64 || Parent->kind () == K_DARWIN64)
801
801
Offsets += sizeof (uint64_t );
802
802
else
803
803
Offsets += sizeof (uint32_t );
804
804
uint32_t Offset = 0 ;
805
805
if (Parent->kind () == K_GNU) {
806
806
Offset = read32be (Offsets + SymbolIndex * 4 );
807
- } else if (Parent->kind () == K_MIPS64 ) {
807
+ } else if (Parent->kind () == K_GNU64 ) {
808
808
Offset = read64be (Offsets + SymbolIndex * 8 );
809
809
} else if (Parent->kind () == K_BSD) {
810
810
// The SymbolIndex is an index into the ranlib structs that start at
@@ -902,7 +902,7 @@ Archive::symbol_iterator Archive::symbol_begin() const {
902
902
uint32_t symbol_count = 0 ;
903
903
symbol_count = read32be (buf);
904
904
buf += sizeof (uint32_t ) + (symbol_count * (sizeof (uint32_t )));
905
- } else if (kind () == K_MIPS64 ) {
905
+ } else if (kind () == K_GNU64 ) {
906
906
uint64_t symbol_count = read64be (buf);
907
907
buf += sizeof (uint64_t ) + (symbol_count * (sizeof (uint64_t )));
908
908
} else if (kind () == K_BSD) {
@@ -959,7 +959,7 @@ uint32_t Archive::getNumberOfSymbols() const {
959
959
const char *buf = getSymbolTable ().begin ();
960
960
if (kind () == K_GNU)
961
961
return read32be (buf);
962
- if (kind () == K_MIPS64 )
962
+ if (kind () == K_GNU64 )
963
963
return read64be (buf);
964
964
if (kind () == K_BSD)
965
965
return read32le (buf) / 8 ;
0 commit comments