]> granicus.if.org Git - llvm/commitdiff
revert inadvertedly introduced build break
authorBob Haarman <llvm@inglorion.net>
Tue, 6 Dec 2016 00:55:55 +0000 (00:55 +0000)
committerBob Haarman <llvm@inglorion.net>
Tue, 6 Dec 2016 00:55:55 +0000 (00:55 +0000)
Summary:
r288722 introduced a build break due some code that should
not have been part of the commit. This change removes the offending
code.

Reviewers: davide, ruiu

Differential Revision: https://reviews.llvm.org/D27435

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288742 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-pdbdump/LLVMOutputStyle.cpp

index b6bf5cf919072ac8c300e71fb6ab479a72e8b749..98c67ec9ef3bf8d0b95fe9acbd4786a1f1b0ac02 100644 (file)
@@ -357,15 +357,7 @@ Error LLVMOutputStyle::dumpGlobalsStream() {
 
   auto Globals = File.getPDBGlobalsStream();
   if (!Globals)
-    return handleErrors(Globals.takeError(),
-                        [&](const msf::MSFError &E) -> Error {
-                          if (E.Code == msf::msf_error_code::no_stream) {
-                            P.printString("Globals Stream not present");
-                            return Error::success();
-                          } else {
-                            return make_error<msf::MSFError>(E);
-                          }
-                        });
+    return Globals.takeError();
   DictScope D(P, "Globals Stream");
 
   auto Dbi = File.getPDBDbiStream();