diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-15 23:04:14 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-15 23:04:14 +0000 |
| commit | d3ac0c1e9cb78dcea5e925cb413771d8cd8658fd (patch) | |
| tree | 59d5cb2cd3f9957c96c34f55d5cf77a3b298270f | |
| parent | d4754971b497fb26367a671f915d007707dd52fc (diff) | |
| download | bcm5719-llvm-d3ac0c1e9cb78dcea5e925cb413771d8cd8658fd.tar.gz bcm5719-llvm-d3ac0c1e9cb78dcea5e925cb413771d8cd8658fd.zip | |
System/Path: Add x86-64 COFF to IdentifyFileType.
llvm-svn: 114037
| -rw-r--r-- | llvm/lib/System/Path.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp index 0026fd29df5..ae166a574d1 100644 --- a/llvm/lib/System/Path.cpp +++ b/llvm/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; |

