aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-31 18:57:45 +0000
committerChris Lattner <sabre@nondot.org>2007-05-31 18:57:45 +0000
commit3a4205367dc845d4cd804b47e061f8281777c9da (patch)
tree3c7493d7370bf2d3777ce68c247be3bca2b48cbd /lib/Target/ARM/ARMAsmPrinter.cpp
parent4f3485c0da50e9722c8414f95e2f04d0f51757f0 (diff)
Fix the asmprinter so that a globalvalue can specify an explicit alignment
smaller than the preferred alignment, but so that the target can actually specify a minimum alignment if needed. This fixes some objc protocol failures Devang tracked down. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp
index c57fbbc019..f6bf6e0be8 100644
--- a/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -218,7 +218,7 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
O << VisibilityDirective << CurrentFnName << "\n";
if (AFI->isThumbFunction()) {
- EmitAlignment(AFI->getAlign(), F);
+ EmitAlignment(1, F, AFI->getAlign());
O << "\t.code\t16\n";
O << "\t.thumb_func";
if (Subtarget->isTargetDarwin())