[llvm-commits] [llvm] r73660 - /llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Jun 17 16:43:18 PDT 2009
Author: asl
Date: Wed Jun 17 18:43:18 2009
New Revision: 73660
URL: http://llvm.org/viewvc/llvm-project?rev=73660&view=rev
Log:
Thumb2 instructions are enabled only in unified assembler mode.
Emit switch directive for it. I have no idea whether this is
requirement for Darwin or not.
Modified:
llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp?rev=73660&r1=73659&r2=73660&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp Wed Jun 17 18:43:18 2009
@@ -840,6 +840,10 @@
if (Subtarget->isTargetDarwin())
Mang->setUseQuotes(true);
+ // Thumb-2 instructions are supported only in unified assembler syntax mode.
+ if (Subtarget->isTargetELF() && Subtarget->hasThumb2())
+ O << "\t.syntax unified\n";
+
// Emit ARM Build Attributes
if (Subtarget->isTargetELF()) {
// CPU Type
More information about the llvm-commits
mailing list