[llvm] r288742 - revert inadvertedly introduced build break

Bob Haarman via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 16:55:56 PST 2016


Author: inglorion
Date: Mon Dec  5 18:55:55 2016
New Revision: 288742

URL: http://llvm.org/viewvc/llvm-project?rev=288742&view=rev
Log:

revert inadvertedly introduced build break

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

Modified:
    llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp

Modified: llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp?rev=288742&r1=288741&r2=288742&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp Mon Dec  5 18:55:55 2016
@@ -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();




More information about the llvm-commits mailing list