Skip to content

Commit d962dd5

Browse files
author
Brian Gaeke
committed
The .type directive on Solaris uses the # character instead of @.
llvm-svn: 12454
1 parent 3fb0e20 commit d962dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ bool V8Printer::runOnMachineFunction(MachineFunction &MF) {
337337
O << "\t.text\n";
338338
O << "\t.align 16\n";
339339
O << "\t.globl\t" << CurrentFnName << "\n";
340-
O << "\t.type\t" << CurrentFnName << ", @function\n";
340+
O << "\t.type\t" << CurrentFnName << ", #function\n";
341341
O << CurrentFnName << ":\n";
342342

343343
// Number each basic block so that we can consistently refer to them
@@ -513,7 +513,7 @@ bool V8Printer::doFinalization(Module &M) {
513513
}
514514

515515
O << "\t.align " << Align << "\n";
516-
O << "\t.type " << name << ",@object\n";
516+
O << "\t.type " << name << ",#object\n";
517517
O << "\t.size " << name << "," << Size << "\n";
518518
O << name << ":\t\t\t\t! ";
519519
WriteAsOperand(O, I, true, true, &M);

0 commit comments

Comments
 (0)