summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-06-16 18:09:04 +0000
committerZachary Turner <zturner@google.com>2016-06-16 18:09:04 +0000
commit73b0b2f55503e6b72e6525a115965a184e1a1dd7 (patch)
tree8496dfc19ffd91b805c68a4f0c32d193bab454aa /llvm/lib/CodeGen/AsmPrinter
parent1f6372c429ce6b85a572c213d53f0ed8d293ff38 (diff)
downloadbcm5719-llvm-73b0b2f55503e6b72e6525a115965a184e1a1dd7.tar.gz
bcm5719-llvm-73b0b2f55503e6b72e6525a115965a184e1a1dd7.zip
Revert "[pdb] Change type visitor pattern to be dynamic."
This reverts commit fb0dd311e1ad945827b8ffd5354f4810e2be1579. This breaks some llvm-readobj tests. llvm-svn: 272927
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index d798901be1c..ff719b242c4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -322,9 +322,10 @@ void CodeViewDebug::emitTypeInformation() {
ScopedPrinter SP(CommentOS);
SP.setPrefix(CommentPrefix);
CVTD.setPrinter(&SP);
- Error EC = CVTD.dump({Record.bytes_begin(), Record.bytes_end()});
- assert(!EC && "produced malformed type record");
- consumeError(std::move(EC));
+ bool DumpSuccess =
+ CVTD.dump({Record.bytes_begin(), Record.bytes_end()});
+ (void)DumpSuccess;
+ assert(DumpSuccess && "produced malformed type record");
// emitRawComment will insert its own tab and comment string before
// the first line, so strip off our first one. It also prints its own
// newline.
OpenPOWER on IntegriCloud