projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start using CHECK-LABEL in some tests.
[oota-llvm.git]
/
lib
/
Object
/
ObjectFile.cpp
diff --git
a/lib/Object/ObjectFile.cpp
b/lib/Object/ObjectFile.cpp
index b5f666f27fa068328c027ff68c4afe53dc7c0609..8dfc26508bcc08bebd39c8f80e5de0d5676f7163 100644
(file)
--- a/
lib/Object/ObjectFile.cpp
+++ b/
lib/Object/ObjectFile.cpp
@@
-44,6
+44,9
@@
ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) {
sys::fs::file_magic Type = sys::fs::identify_magic(Object->getBuffer());
switch (Type) {
case sys::fs::file_magic::unknown:
sys::fs::file_magic Type = sys::fs::identify_magic(Object->getBuffer());
switch (Type) {
case sys::fs::file_magic::unknown:
+ case sys::fs::file_magic::bitcode:
+ case sys::fs::file_magic::archive:
+ case sys::fs::file_magic::macho_universal_binary:
return 0;
case sys::fs::file_magic::elf_relocatable:
case sys::fs::file_magic::elf_executable:
return 0;
case sys::fs::file_magic::elf_relocatable:
case sys::fs::file_magic::elf_executable: