diff options
Diffstat (limited to 'contrib/llvm/lib/Object/Binary.cpp')
-rw-r--r-- | contrib/llvm/lib/Object/Binary.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Object/Binary.cpp b/contrib/llvm/lib/Object/Binary.cpp index c4565db459e6..d7c25921ec36 100644 --- a/contrib/llvm/lib/Object/Binary.cpp +++ b/contrib/llvm/lib/Object/Binary.cpp @@ -75,6 +75,9 @@ Expected<std::unique_ptr<Binary>> object::createBinary(MemoryBufferRef Buffer, return MachOUniversalBinary::create(Buffer); case file_magic::windows_resource: return WindowsResource::createWindowsResource(Buffer); + case file_magic::pdb: + // PDB does not support the Binary interface. + return errorCodeToError(object_error::invalid_file_type); case file_magic::unknown: case file_magic::coff_cl_gl_object: // Unrecognized object file format. |