Fix .thumb_func directive on linux.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Thu, 1 Feb 2007 18:25:34 +0000 (18:25 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Thu, 1 Feb 2007 18:25:34 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33759 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmPrinter.cpp

index 1fa6fb8b1d5269df184bf4ca459456dd29123a8f..b63f2890d83a6c551d8b48192f73fea794d17b37 100644 (file)
@@ -208,7 +208,10 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   if (AFI->isThumbFunction()) {
     EmitAlignment(1, F);
     O << "\t.code\t16\n";
-    O << "\t.thumb_func\t" << CurrentFnName << "\n";
+    O << "\t.thumb_func";
+    if (Subtarget->isTargetDarwin())
+      O << "\t" << CurrentFnName;
+    O << "\n";
     InCPMode = false;
   } else
     EmitAlignment(2, F);