summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-05-17 21:49:25 +0000
committerZachary Turner <zturner@google.com>2018-05-17 21:49:25 +0000
commit1de9fce15152a410aa082f4f38d52c41f01fece1 (patch)
treea165062f389d080f03c850b2cee74742657abdd3 /llvm/lib/CodeGen/AsmPrinter
parent5b5350ddee0957db31812f544655f06570fa436d (diff)
downloadbcm5719-llvm-1de9fce15152a410aa082f4f38d52c41f01fece1.tar.gz
bcm5719-llvm-1de9fce15152a410aa082f4f38d52c41f01fece1.zip
Revert "[pdb] Change /DEBUG:GHASH to emit 8 byte hashes."
A few tests haven't been properly updated, so reverting while I have time to investigate proper fixes. llvm-svn: 332672
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 2dcfbf48a32..ef279417b7e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -589,7 +589,7 @@ void CodeViewDebug::emitTypeGlobalHashes() {
OS.AddComment("Section Version");
OS.EmitIntValue(0, 2);
OS.AddComment("Hash Algorithm");
- OS.EmitIntValue(uint16_t(GlobalTypeHashAlg::SHA1_8), 2);
+ OS.EmitIntValue(uint16_t(GlobalTypeHashAlg::SHA1), 2);
TypeIndex TI(TypeIndex::FirstNonSimpleIndex);
for (const auto &GHR : TypeTable.hashes()) {
@@ -602,7 +602,7 @@ void CodeViewDebug::emitTypeGlobalHashes() {
OS.AddComment(Comment);
++TI;
}
- assert(GHR.Hash.size() == 8);
+ assert(GHR.Hash.size() % 20 == 0);
StringRef S(reinterpret_cast<const char *>(GHR.Hash.data()),
GHR.Hash.size());
OS.EmitBinaryData(S);
OpenPOWER on IntegriCloud