Fix .thumb_func directive on linux.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lauro Ramos Venancio 2007-02-01 18:25:34 +00:00
parent b47f32e0e9
commit 6f46e59d2a

View 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);