projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Identify thin archives as archives.
[oota-llvm.git]
/
lib
/
Support
/
Path.cpp
diff --git
a/lib/Support/Path.cpp
b/lib/Support/Path.cpp
index 75fd292e5b161dde3fb5fd6f18a44d866edbca07..985cdbf74325e83b17c4161774e8bee41acb303a 100644
(file)
--- a/
lib/Support/Path.cpp
+++ b/
lib/Support/Path.cpp
@@
-939,7
+939,8
@@
file_magic identify_magic(StringRef Magic) {
break;
case '!':
if (Magic.size() >= 8)
- if (memcmp(Magic.data(),"!<arch>\n",8) == 0)
+ if (memcmp(Magic.data(), "!<arch>\n", 8) == 0 ||
+ memcmp(Magic.data(), "!<thin>\n", 8) == 0)
return file_magic::archive;
break;