aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-03-07 18:58:33 +0000
committerZachary Turner <zturner@google.com>2018-03-07 18:58:33 +0000
commitaac28f31b3903b907dcb50ea7e4e0bbe22c944bf (patch)
treedefc819bc6512eb2d44c2019b5063cb80eb43d99 /llvm/lib/Object/ObjectFile.cpp
parentb2da08610327d32474a931502c03f486ccbe36ac (diff)
downloadllvm-aac28f31b3903b907dcb50ea7e4e0bbe22c944bf.zip
llvm-aac28f31b3903b907dcb50ea7e4e0bbe22c944bf.tar.gz
llvm-aac28f31b3903b907dcb50ea7e4e0bbe22c944bf.tar.bz2
Update a few switch statements to handle file_magic::pdb.
This fixes a couple of warnings. llvm-svn: 326927
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index 652a2b2..db0ff22 100644
--- a/llvm/lib/Object/ObjectFile.cpp
+++ b/llvm/lib/Object/ObjectFile.cpp
@@ -119,6 +119,7 @@ ObjectFile::createObjectFile(MemoryBufferRef Object, file_magic Type) {
case file_magic::archive:
case file_magic::macho_universal_binary:
case file_magic::windows_resource:
+ case file_magic::pdb:
return errorCodeToError(object_error::invalid_file_type);
case file_magic::elf:
case file_magic::elf_relocatable: