summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-11-05 18:48:58 +0000
committerJim Grosbach <grosbach@apple.com>2010-11-05 18:48:58 +0000
commit46c2acbcb44d1c5982c05510ff992701cb952d84 (patch)
tree852ee1132897bb5227ccb1bb913247b67ad79022 /llvm/lib/Target/ARM/ARMAsmBackend.cpp
parentc75bb744e1c450f514731acff0e84dc2e9085bad (diff)
downloadbcm5719-llvm-46c2acbcb44d1c5982c05510ff992701cb952d84.tar.gz
bcm5719-llvm-46c2acbcb44d1c5982c05510ff992701cb952d84.zip
Allow targets to specify the MachO CPUType/CPUSubtype information.
llvm-svn: 118288
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmBackend.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
index 4be02424752..e1c4524162c 100644
--- a/llvm/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
@@ -20,6 +20,7 @@
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MachObjectWriter.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"
@@ -128,7 +129,9 @@ public:
}
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
- return new MachObjectWriter(OS, /*Is64Bit=*/false);
+ // FIXME: Subtarget info should be derived. Force v7 for now.
+ return new MachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPUTypeARM,
+ MachO::CPUSubType_ARM_V7);
}
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
OpenPOWER on IntegriCloud