summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-14 23:00:16 +0000
committerZachary Turner <zturner@google.com>2016-09-14 23:00:16 +0000
commitc67b00c6959d0a7f96c2f0e394e04e582b321558 (patch)
tree1c7527b7925090baf9dc2fa07188ce454e0927a2 /llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp
parent620961deb9bc4c0415d56bed9b2fe20391bd2ad2 (diff)
downloadbcm5719-llvm-c67b00c6959d0a7f96c2f0e394e04e582b321558.tar.gz
bcm5719-llvm-c67b00c6959d0a7f96c2f0e394e04e582b321558.zip
[pdb] Get rid of Data and RawData in CVType.
The `CVType` had two redundant fields which were confusing and error-prone to fill out. By treating member records as a distinct type from leaf records, we are able to simplify this quite a bit. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D24432 llvm-svn: 281556
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp
index d08ec96b182..6c3ddb3d57a 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/TpiHashing.cpp
@@ -58,15 +58,15 @@ void TpiHashUpdater::visitKnownRecordImpl(CVType &CVR,
}
void TpiHashUpdater::visitKnownRecordImpl(CVType &CVR, ClassRecord &Rec) {
- CVR.Hash = getTpiHash(Rec, CVR.RawData);
+ CVR.Hash = getTpiHash(Rec, CVR.data());
}
void TpiHashUpdater::visitKnownRecordImpl(CVType &CVR, EnumRecord &Rec) {
- CVR.Hash = getTpiHash(Rec, CVR.RawData);
+ CVR.Hash = getTpiHash(Rec, CVR.data());
}
void TpiHashUpdater::visitKnownRecordImpl(CVType &CVR, UnionRecord &Rec) {
- CVR.Hash = getTpiHash(Rec, CVR.RawData);
+ CVR.Hash = getTpiHash(Rec, CVR.data());
}
Error TpiHashVerifier::visitKnownRecord(CVType &CVR, UdtSourceLineRecord &Rec) {
@@ -79,17 +79,17 @@ Error TpiHashVerifier::visitKnownRecord(CVType &CVR,
}
Error TpiHashVerifier::visitKnownRecord(CVType &CVR, ClassRecord &Rec) {
- if (getTpiHash(Rec, CVR.RawData) % NumHashBuckets != HashValues[Index])
+ if (getTpiHash(Rec, CVR.data()) % NumHashBuckets != HashValues[Index])
return errorInvalidHash();
return Error::success();
}
Error TpiHashVerifier::visitKnownRecord(CVType &CVR, EnumRecord &Rec) {
- if (getTpiHash(Rec, CVR.RawData) % NumHashBuckets != HashValues[Index])
+ if (getTpiHash(Rec, CVR.data()) % NumHashBuckets != HashValues[Index])
return errorInvalidHash();
return Error::success();
}
Error TpiHashVerifier::visitKnownRecord(CVType &CVR, UnionRecord &Rec) {
- if (getTpiHash(Rec, CVR.RawData) % NumHashBuckets != HashValues[Index])
+ if (getTpiHash(Rec, CVR.data()) % NumHashBuckets != HashValues[Index])
return errorInvalidHash();
return Error::success();
}
OpenPOWER on IntegriCloud