aboutsummaryrefslogtreecommitdiff
path: root/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
commitc9d1439051d130cfb947ef9ab4a95737c41e2fd1 (patch)
tree0f739dfe9d2f28078bb3574fe01f6dc85cb35fd6 /lib/Target/ARM/ARMAsmBackend.cpp
parent41ed3ca19d406b6eef47c01ea16453f3080f32e8 (diff)
Allow targets to specify the MachO CPUType/CPUSubtype information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmBackend.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp
index 4be0242475..e1c4524162 100644
--- a/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/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 {