projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6d760c
)
System/Path: Add x86-64 COFF to IdentifyFileType.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Wed, 15 Sep 2010 23:04:14 +0000
(23:04 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Wed, 15 Sep 2010 23:04:14 +0000
(23:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114037
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Path.cpp
patch
|
blob
|
history
diff --git
a/lib/System/Path.cpp
b/lib/System/Path.cpp
index 0026fd29df5b99f9cde9d495b14b4dc7ff33ff5a..ae166a574d1042a87b311b41063d180ed1055a1b 100644
(file)
--- a/
lib/System/Path.cpp
+++ b/
lib/System/Path.cpp
@@
-127,6
+127,10
@@
sys::IdentifyFileType(const char *magic, unsigned length) {
if (magic[1] == 0x02)
return COFF_FileType;
break;
+ case 0x64: // x86-64 Windows.
+ if (magic[1] == char(0x86))
+ return COFF_FileType;
+ break;
default:
break;