aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-06-11 13:00:54 -0700
committerReid Kleckner <rnk@google.com>2020-06-11 14:46:16 -0700
commit1c03389c29f32cce81a642365c484c71aba1a1cb (patch)
tree5b6ec77d37a2c78e1a3dc8a89004be921079c3a6 /llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
parentf44d2424f8d7735d7ab5ffd96f75300221afd099 (diff)
downloadllvm-1c03389c29f32cce81a642365c484c71aba1a1cb.zip
llvm-1c03389c29f32cce81a642365c484c71aba1a1cb.tar.gz
llvm-1c03389c29f32cce81a642365c484c71aba1a1cb.tar.bz2
Re-land "Migrate the rest of COFFObjectFile to Error"
This reverts commit 101fbc01382edd89ea7b671104c68b30b2446cc0. Remove leftover debugging attribute. Update LLDB as well, which was missed before.
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
index 043d236..dcae2e9 100644
--- a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
@@ -133,8 +133,8 @@ static Expected<std::string> getPdbPathFromExe(StringRef ExePath) {
StringRef PdbPath;
const llvm::codeview::DebugInfo *PdbInfo = nullptr;
- if (auto EC = ObjFile->getDebugPDBInfo(PdbInfo, PdbPath))
- return make_error<RawError>(EC);
+ if (Error E = ObjFile->getDebugPDBInfo(PdbInfo, PdbPath))
+ return std::move(E);
return std::string(PdbPath);
}