[llvm] r286920 - Fix -Wswitch.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 16:58:50 PST 2016
Author: ruiu
Date: Mon Nov 14 18:58:50 2016
New Revision: 286920
URL: http://llvm.org/viewvc/llvm-project?rev=286920&view=rev
Log:
Fix -Wswitch.
Modified:
llvm/trunk/lib/Object/Binary.cpp
llvm/trunk/lib/Object/SymbolicFile.cpp
Modified: llvm/trunk/lib/Object/Binary.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Binary.cpp?rev=286920&r1=286919&r2=286920&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Binary.cpp (original)
+++ llvm/trunk/lib/Object/Binary.cpp Mon Nov 14 18:58:50 2016
@@ -67,6 +67,7 @@ Expected<std::unique_ptr<Binary>> object
case sys::fs::file_magic::macho_universal_binary:
return MachOUniversalBinary::create(Buffer);
case sys::fs::file_magic::unknown:
+ case sys::fs::file_magic::coff_cl_gl_object:
case sys::fs::file_magic::windows_resource:
// Unrecognized object file format.
return errorCodeToError(object_error::invalid_file_type);
Modified: llvm/trunk/lib/Object/SymbolicFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/SymbolicFile.cpp?rev=286920&r1=286919&r2=286920&view=diff
==============================================================================
--- llvm/trunk/lib/Object/SymbolicFile.cpp (original)
+++ llvm/trunk/lib/Object/SymbolicFile.cpp Mon Nov 14 18:58:50 2016
@@ -39,6 +39,7 @@ Expected<std::unique_ptr<SymbolicFile>>
LLVM_FALLTHROUGH;
case sys::fs::file_magic::unknown:
case sys::fs::file_magic::archive:
+ case sys::fs::file_magic::coff_cl_gl_object:
case sys::fs::file_magic::macho_universal_binary:
case sys::fs::file_magic::windows_resource:
return errorCodeToError(object_error::invalid_file_type);
More information about the llvm-commits
mailing list