aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-11-11 23:41:09 +0000
committerJim Grosbach <grosbach@apple.com>2010-11-11 23:41:09 +0000
commite50e6bcd901ebb1cfc42fe9ca0796ae303d7f1a1 (patch)
tree683a991dad62093c2bf5a994a5703b9d82e551b3 /lib/Target/ARM/ARMAsmBackend.cpp
parent8f143913141991baaa535ca0da7c8a81606d6392 (diff)
Start of support for binary emit of 16-it Thumb instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmBackend.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp
index 54cd1aefd4..d5a27592da 100644
--- a/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/lib/Target/ARM/ARMAsmBackend.cpp
@@ -56,10 +56,14 @@ void ARMAsmBackend::RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
}
bool ARMAsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const {
- if ((Count % 4) != 0) {
- // Fixme: % 2 for Thumb?
- return false;
- }
+// if ((Count % 4) != 0) {
+// // Fixme: % 2 for Thumb?
+// return false;
+// }
+ // FIXME: Zero fill for now. That's not right, but at least will get the
+ // section size right.
+ for (uint64_t i = 0; i != Count; ++i)
+ OW->Write8(0);
return true;
}
} // end anonymous namespace