diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-27 04:38:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-27 04:38:36 +0000 |
commit | 36d76a8dbc87b62de82a4a8c0d7cb4bb2a202934 (patch) | |
tree | 335535c49293da57ab457be6ffb04ff437728982 /lib/Target/ARM/ARMAsmBackend.cpp | |
parent | 821ecd7c9060a98e3559c11d66e4bfb6e957a91e (diff) | |
download | external_llvm-36d76a8dbc87b62de82a4a8c0d7cb4bb2a202934.tar.gz external_llvm-36d76a8dbc87b62de82a4a8c0d7cb4bb2a202934.tar.bz2 external_llvm-36d76a8dbc87b62de82a4a8c0d7cb4bb2a202934.zip |
MC/Mach-O: Switch to using MachOFormat.h.
- I'm leaving MachO.h, because I believe it has external consumers, but I would really like to eliminate it (we have stylistic disagreements with one another).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index a3142076e2..e7ff8bd1fa 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -17,8 +17,8 @@ #include "llvm/MC/MCObjectWriter.h" #include "llvm/MC/MCSectionELF.h" #include "llvm/MC/MCSectionMachO.h" +#include "llvm/Object/MachOFormat.h" #include "llvm/Support/ELF.h" -#include "llvm/Support/MachO.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetRegistry.h" @@ -115,8 +115,9 @@ public: MCObjectWriter *createObjectWriter(raw_ostream &OS) const { // FIXME: Subtarget info should be derived. Force v7 for now. - return createMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPUTypeARM, - MachO::CPUSubType_ARM_V7, + return createMachObjectWriter(OS, /*Is64Bit=*/false, + object::mach::CTM_ARM, + object::mach::CSARM_V7, /*IsLittleEndian=*/true); } |