The .type directive on Solaris uses the # character instead of @.
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 16 Mar 2004 22:52:04 +0000 (22:52 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 16 Mar 2004 22:52:04 +0000 (22:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12454 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcAsmPrinter.cpp
lib/Target/SparcV8/SparcV8AsmPrinter.cpp

index 9dabdab517d2a687ae60a34d02fd4b92e0c6cc28..a1f1a9aae9f40c1b9bd98209e64ce9206e9ab27a 100644 (file)
@@ -337,7 +337,7 @@ bool V8Printer::runOnMachineFunction(MachineFunction &MF) {
   O << "\t.text\n";
   O << "\t.align 16\n";
   O << "\t.globl\t" << CurrentFnName << "\n";
-  O << "\t.type\t" << CurrentFnName << ", @function\n";
+  O << "\t.type\t" << CurrentFnName << ", #function\n";
   O << CurrentFnName << ":\n";
 
   // Number each basic block so that we can consistently refer to them
@@ -513,7 +513,7 @@ bool V8Printer::doFinalization(Module &M) {
         }
 
         O << "\t.align " << Align << "\n";
-        O << "\t.type " << name << ",@object\n";
+        O << "\t.type " << name << ",#object\n";
         O << "\t.size " << name << "," << Size << "\n";
         O << name << ":\t\t\t\t! ";
         WriteAsOperand(O, I, true, true, &M);
index 9dabdab517d2a687ae60a34d02fd4b92e0c6cc28..a1f1a9aae9f40c1b9bd98209e64ce9206e9ab27a 100644 (file)
@@ -337,7 +337,7 @@ bool V8Printer::runOnMachineFunction(MachineFunction &MF) {
   O << "\t.text\n";
   O << "\t.align 16\n";
   O << "\t.globl\t" << CurrentFnName << "\n";
-  O << "\t.type\t" << CurrentFnName << ", @function\n";
+  O << "\t.type\t" << CurrentFnName << ", #function\n";
   O << CurrentFnName << ":\n";
 
   // Number each basic block so that we can consistently refer to them
@@ -513,7 +513,7 @@ bool V8Printer::doFinalization(Module &M) {
         }
 
         O << "\t.align " << Align << "\n";
-        O << "\t.type " << name << ",@object\n";
+        O << "\t.type " << name << ",#object\n";
         O << "\t.size " << name << "," << Size << "\n";
         O << name << ":\t\t\t\t! ";
         WriteAsOperand(O, I, true, true, &M);