summaryrefslogtreecommitdiff
path: root/lib/System
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-09-15 23:04:14 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-09-15 23:04:14 +0000
commit7e7d01de9c85af70dd4058358f8eb36d82c3e49f (patch)
tree5643383fb12b19cc588be69d9bd6d712ab391f6e /lib/System
parentb6d760c7d5e8496475a0063c32f87bd6161cb2db (diff)
downloadllvm-7e7d01de9c85af70dd4058358f8eb36d82c3e49f.tar.gz
llvm-7e7d01de9c85af70dd4058358f8eb36d82c3e49f.tar.bz2
llvm-7e7d01de9c85af70dd4058358f8eb36d82c3e49f.tar.xz
System/Path: Add x86-64 COFF to IdentifyFileType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Path.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp
index 0026fd29df..ae166a574d 100644
--- 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;