[llvm-pdbdump] Better error handling.
[oota-llvm.git] / include / llvm / DebugInfo / PDB / PDB.h
index 81dbdb8fd327e2abae91d1de1401bbf1ac974403..67878e9ccf600707636d0f6d3accb9eb2d4ef2bf 100644 (file)
 #ifndef LLVM_DEBUGINFO_PDB_PDB_H
 #define LLVM_DEBUGINFO_PDB_PDB_H
 
-#include <memory>
-
 #include "PDBTypes.h"
+#include <memory>
 
 namespace llvm {
 class StringRef;
 
-std::unique_ptr<IPDBSession> createPDBReader(PDB_ReaderType Type,
-                                             StringRef Path);
+PDB_ErrorCode createPDBReader(PDB_ReaderType Type, StringRef Path,
+                              std::unique_ptr<IPDBSession> &Session);
 }
 
 #endif