From: Bob Haarman Date: Tue, 6 Dec 2016 00:55:55 +0000 (+0000) Subject: revert inadvertedly introduced build break X-Git-Tag: llvmorg-4.0.0-rc1~2923 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=312fd0eea8391766f592845ed5bbd12ae58eced2;p=platform%2Fupstream%2Fllvm.git 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 llvm-svn: 288742 --- diff --git a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp index b6bf5cf..98c67ec9 100644 --- a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp +++ b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp @@ -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(E); - } - }); + return Globals.takeError(); DictScope D(P, "Globals Stream"); auto Dbi = File.getPDBDbiStream();