1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Axe some trailing whitespace from my last commit

llvm-svn: 272830
This commit is contained in:
Reid Kleckner 2016-06-15 20:32:42 +00:00
parent 2eba5b5cb6
commit e8b7172caa

View File

@ -47,7 +47,7 @@ ErrorOr<ProcedureRecord> ProcedureRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
if (auto EC = consumeObject(Data, L)) if (auto EC = consumeObject(Data, L))
return EC; return EC;
return ProcedureRecord(L->ReturnType, L->CallConv, L->Options, return ProcedureRecord(L->ReturnType, L->CallConv, L->Options,
L->NumParameters, L->ArgListType); L->NumParameters, L->ArgListType);
} }
@ -56,7 +56,7 @@ ErrorOr<MemberFunctionRecord>
MemberFunctionRecord::deserialize(TypeRecordKind Kind, MemberFunctionRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
CV_DESERIALIZE(Data, L); CV_DESERIALIZE(Data, L);
return MemberFunctionRecord(L->ReturnType, L->ClassType, L->ThisType, return MemberFunctionRecord(L->ReturnType, L->ClassType, L->ThisType,
L->CallConv, L->Options, L->NumParameters, L->CallConv, L->Options, L->NumParameters,
L->ArgListType, L->ThisAdjustment); L->ArgListType, L->ThisAdjustment);
@ -66,7 +66,7 @@ ErrorOr<MemberFuncIdRecord>
MemberFuncIdRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) { MemberFuncIdRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return MemberFuncIdRecord(L->ClassType, L->FunctionType, Name); return MemberFuncIdRecord(L->ClassType, L->FunctionType, Name);
} }
@ -77,7 +77,7 @@ ErrorOr<ArgListRecord> ArgListRecord::deserialize(TypeRecordKind Kind,
const Layout *L = nullptr; const Layout *L = nullptr;
ArrayRef<TypeIndex> Indices; ArrayRef<TypeIndex> Indices;
CV_DESERIALIZE(Data, L, CV_ARRAY_FIELD_N(Indices, L->NumArgs)); CV_DESERIALIZE(Data, L, CV_ARRAY_FIELD_N(Indices, L->NumArgs));
return ArgListRecord(Kind, Indices); return ArgListRecord(Kind, Indices);
} }
@ -107,7 +107,7 @@ ErrorOr<NestedTypeRecord>
NestedTypeRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) { NestedTypeRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return NestedTypeRecord(L->Type, Name); return NestedTypeRecord(L->Type, Name);
} }
@ -116,7 +116,7 @@ ErrorOr<ArrayRecord> ArrayRecord::deserialize(TypeRecordKind Kind,
const Layout *L = nullptr; const Layout *L = nullptr;
uint64_t Size; uint64_t Size;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Size), Name); CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Size), Name);
return ArrayRecord(L->ElementType, L->IndexType, Size, Name); return ArrayRecord(L->ElementType, L->IndexType, Size, Name);
} }
@ -177,7 +177,7 @@ ErrorOr<EnumRecord> EnumRecord::deserialize(TypeRecordKind Kind,
ErrorOr<BitFieldRecord> BitFieldRecord::deserialize(TypeRecordKind Kind, ErrorOr<BitFieldRecord> BitFieldRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
CV_DESERIALIZE(Data, L); CV_DESERIALIZE(Data, L);
return BitFieldRecord(L->Type, L->BitSize, L->BitOffset); return BitFieldRecord(L->Type, L->BitSize, L->BitOffset);
} }
@ -211,7 +211,7 @@ ErrorOr<TypeServer2Record>
TypeServer2Record::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) { TypeServer2Record::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return TypeServer2Record(StringRef(L->Guid, 16), L->Age, Name); return TypeServer2Record(StringRef(L->Guid, 16), L->Age, Name);
} }
@ -219,7 +219,7 @@ ErrorOr<StringIdRecord> StringIdRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return StringIdRecord(L->id, Name); return StringIdRecord(L->id, Name);
} }
@ -227,14 +227,14 @@ ErrorOr<FuncIdRecord> FuncIdRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return FuncIdRecord(L->ParentScope, L->FunctionType, Name); return FuncIdRecord(L->ParentScope, L->FunctionType, Name);
} }
ErrorOr<UdtSourceLineRecord> ErrorOr<UdtSourceLineRecord>
UdtSourceLineRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) { UdtSourceLineRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
CV_DESERIALIZE(Data, L); CV_DESERIALIZE(Data, L);
return UdtSourceLineRecord(L->UDT, L->SourceFile, L->LineNumber); return UdtSourceLineRecord(L->UDT, L->SourceFile, L->LineNumber);
} }
@ -242,7 +242,7 @@ ErrorOr<BuildInfoRecord> BuildInfoRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
ArrayRef<TypeIndex> Indices; ArrayRef<TypeIndex> Indices;
CV_DESERIALIZE(Data, L, CV_ARRAY_FIELD_N(Indices, L->NumArgs)); CV_DESERIALIZE(Data, L, CV_ARRAY_FIELD_N(Indices, L->NumArgs));
return BuildInfoRecord(Indices); return BuildInfoRecord(Indices);
} }
@ -251,7 +251,7 @@ ErrorOr<VFTableRecord> VFTableRecord::deserialize(TypeRecordKind Kind,
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
std::vector<StringRef> Names; std::vector<StringRef> Names;
CV_DESERIALIZE(Data, L, Name, CV_ARRAY_FIELD_TAIL(Names)); CV_DESERIALIZE(Data, L, Name, CV_ARRAY_FIELD_TAIL(Names));
return VFTableRecord(L->CompleteClass, L->OverriddenVFTable, L->VFPtrOffset, return VFTableRecord(L->CompleteClass, L->OverriddenVFTable, L->VFPtrOffset,
Name, Names); Name, Names);
} }
@ -307,7 +307,7 @@ OverloadedMethodRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return OverloadedMethodRecord(L->MethodCount, L->MethList, Name); return OverloadedMethodRecord(L->MethodCount, L->MethList, Name);
} }
@ -316,7 +316,7 @@ DataMemberRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
uint64_t Offset; uint64_t Offset;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Offset), Name); CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Offset), Name);
return DataMemberRecord(L->Attrs.getAccess(), L->Type, Offset, Name); return DataMemberRecord(L->Attrs.getAccess(), L->Type, Offset, Name);
} }
@ -325,7 +325,7 @@ StaticDataMemberRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Name); CV_DESERIALIZE(Data, L, Name);
return StaticDataMemberRecord(L->Attrs.getAccess(), L->Type, Name); return StaticDataMemberRecord(L->Attrs.getAccess(), L->Type, Name);
} }
@ -334,7 +334,7 @@ EnumeratorRecord::deserialize(TypeRecordKind Kind, ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
APSInt Value; APSInt Value;
StringRef Name; StringRef Name;
CV_DESERIALIZE(Data, L, Value, Name); CV_DESERIALIZE(Data, L, Value, Name);
return EnumeratorRecord(L->Attrs.getAccess(), Value, Name); return EnumeratorRecord(L->Attrs.getAccess(), Value, Name);
} }
@ -342,7 +342,7 @@ ErrorOr<VFPtrRecord> VFPtrRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
if (auto EC = consumeObject(Data, L)) if (auto EC = consumeObject(Data, L))
return EC; return EC;
return VFPtrRecord(L->Type); return VFPtrRecord(L->Type);
} }
@ -350,7 +350,7 @@ ErrorOr<BaseClassRecord> BaseClassRecord::deserialize(TypeRecordKind Kind,
ArrayRef<uint8_t> &Data) { ArrayRef<uint8_t> &Data) {
const Layout *L = nullptr; const Layout *L = nullptr;
uint64_t Offset; uint64_t Offset;
CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Offset)); CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Offset));
return BaseClassRecord(L->Attrs.getAccess(), L->BaseType, Offset); return BaseClassRecord(L->Attrs.getAccess(), L->BaseType, Offset);
} }
@ -360,7 +360,7 @@ VirtualBaseClassRecord::deserialize(TypeRecordKind Kind,
const Layout *L = nullptr; const Layout *L = nullptr;
uint64_t Offset; uint64_t Offset;
uint64_t Index; uint64_t Index;
CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Offset), CV_NUMERIC_FIELD(Index)); CV_DESERIALIZE(Data, L, CV_NUMERIC_FIELD(Offset), CV_NUMERIC_FIELD(Index));
return VirtualBaseClassRecord(L->Attrs.getAccess(), L->BaseType, L->VBPtrType, return VirtualBaseClassRecord(L->Attrs.getAccess(), L->BaseType, L->VBPtrType,
Offset, Index); Offset, Index);
} }