Update the subtarget information for Windows on ARM. This enables using the MC
layer to target Windows on ARM.
Details
- Reviewers
t.p.northover • rafael rnk
Diff Detail
Event Timeline
lib/IR/DataLayout.cpp | ||
---|---|---|
158 | I think this can now be just if (T.isOSBinFormatELF() || (T.isOSWindows() && T.getArch() != Triple::x86)) |
Add a couple of sanity checking tests (ideas for additional tests still welcome!). Fix a stupid mistake that snuck in during rebasing.
lib/IR/DataLayout.cpp | ||
---|---|---|
158–159 | I think this can be just if (T.isOSBinFormatELF() || (T.isOSWindows() && T.getArch() != Triple::x86)) |
lib/IR/DataLayout.cpp | ||
---|---|---|
158–159 | We should probably flip this around to be: if (T.isOSBinFormatCOFF() && T.isOSWindows() && T.getArch() == Triple::X86) return "-m:w"; return "-m:e"; The Windows manglings are specific to x86 anyway. They didn't keep them for x86_64 or arm. | |
lib/Target/ARM/ARMSubtarget.cpp | ||
217 | *blink* OK, I guess WinRT is always in Thumb mode. | |
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp | ||
250–251 | I imagine we will come here for i686-pc-win32-macho, which might be a target that Apple cares about. |
lib/IR/DataLayout.cpp | ||
---|---|---|
158–159 | I like rnk's suggestion better, Ill change it to that. | |
lib/Target/ARM/ARMSubtarget.cpp | ||
217 | Yes, AFAICT, WoA is all thumb mode (but, retains the problem of ensuring that code is marked correctly when generated). | |
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp | ||
250–251 | This is the ARM target definition, so you must mean armv7-windows-macho. Is there a loader for that? |
I think this can now be just