From aac28f31b3903b907dcb50ea7e4e0bbe22c944bf Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 7 Mar 2018 18:58:33 +0000 Subject: Update a few switch statements to handle file_magic::pdb. This fixes a couple of warnings. llvm-svn: 326927 --- llvm/lib/Object/Binary.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Object/Binary.cpp') diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp index c4565db459e..d7c25921ec3 100644 --- a/llvm/lib/Object/Binary.cpp +++ b/llvm/lib/Object/Binary.cpp @@ -75,6 +75,9 @@ Expected> 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. -- cgit v1.2.3