mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 04:34:41 +00:00
Don't print default values for NumberOfAuxSymbols and AuxiliaryData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0962b1683f
commit
23a22cdedd
@ -41,6 +41,13 @@ public:
|
||||
assert(isBinary);
|
||||
return Data;
|
||||
}
|
||||
bool operator==(const BinaryRef &Ref) {
|
||||
// Special case for default constructed BinaryRef.
|
||||
if (Ref.Data.empty() && Data.empty())
|
||||
return true;
|
||||
|
||||
return Ref.isBinary == isBinary && Ref.Data == Data;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -255,8 +255,9 @@ void MappingTraits<COFFYAML::Symbol>::mapping(IO &IO, COFFYAML::Symbol &S) {
|
||||
IO.mapRequired("SimpleType", S.SimpleType);
|
||||
IO.mapRequired("ComplexType", S.ComplexType);
|
||||
IO.mapRequired("StorageClass", NS->StorageClass);
|
||||
IO.mapOptional("NumberOfAuxSymbols", S.Header.NumberOfAuxSymbols);
|
||||
IO.mapOptional("AuxiliaryData", S.AuxiliaryData);
|
||||
IO.mapOptional("NumberOfAuxSymbols", S.Header.NumberOfAuxSymbols,
|
||||
(uint8_t) 0);
|
||||
IO.mapOptional("AuxiliaryData", S.AuxiliaryData, object::yaml::BinaryRef());
|
||||
}
|
||||
|
||||
void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) {
|
||||
|
@ -150,3 +150,4 @@ COFF-X86-64-NEXT: SectionNumber: 0
|
||||
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
||||
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
||||
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
||||
COFF-X86-64-NOT: NumberOfAuxSymbols
|
||||
|
Loading…
x
Reference in New Issue
Block a user