summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-03-13 07:02:35 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-03-13 07:02:35 +0000
commit9b7c0af2926d45c1c4ea178be784e31a853a0ec9 (patch)
treec2cb5aec838a9aaaecaba0747ef74ce1823bcf99 /llvm/lib/Support/Path.cpp
parent68af84566143e72b366e154ec2fe91b97468cd50 (diff)
downloadbcm5719-llvm-9b7c0af2926d45c1c4ea178be784e31a853a0ec9.tar.gz
bcm5719-llvm-9b7c0af2926d45c1c4ea178be784e31a853a0ec9.zip
Support: add support to identify WinCOFF/ARM objects
Add the Windows COFF ARM object file magic. This enables the LLVM tools to interact with COFF object files for Windows on ARM. llvm-svn: 203761
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index 6fdad22158d..895e81f4946 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -1016,6 +1016,7 @@ error_code has_magic(const Twine &path, const Twine &magic, bool &result) {
case 0x66: // MPS R4000 Windows
case 0x50: // mc68K
case 0x4c: // 80386 Windows
+ case 0xc4: // ARMNT Windows
if (Magic[1] == 0x01)
return file_magic::coff_object;
OpenPOWER on IntegriCloud