summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorWesley Peck <peckw@wesleypeck.com>2010-10-22 15:52:49 +0000
committerWesley Peck <peckw@wesleypeck.com>2010-10-22 15:52:49 +0000
commit1851090515a027eea6b7ae2d41eb9cd5fb409137 (patch)
tree1c5d2791e96ae7ad81969e966a2f58a879527b0f /llvm/lib/Target/ARM/ARMAsmBackend.cpp
parent007b26be68bcfd6b67fa291c8a6474053e4b9228 (diff)
downloadbcm5719-llvm-1851090515a027eea6b7ae2d41eb9cd5fb409137.tar.gz
bcm5719-llvm-1851090515a027eea6b7ae2d41eb9cd5fb409137.zip
Making the e_machine configurable by the target backend in ELFObjectWriter.
llvm-svn: 117099
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
index d113cf5b9ec..72f6e2b4ce7 100644
--- a/llvm/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
@@ -19,6 +19,7 @@
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MachObjectWriter.h"
+#include "llvm/Support/ELF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetRegistry.h"
@@ -90,7 +91,7 @@ public:
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
return new ELFObjectWriter(OS, /*Is64Bit=*/false,
- OSType,
+ OSType, ELF::EM_ARM,
/*IsLittleEndian=*/true,
/*HasRelocationAddend=*/false);
}
OpenPOWER on IntegriCloud