aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-03-16 22:52:04 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-03-16 22:52:04 +0000
commit54cc3c2135bcab1a57d792d9026f72e6937934ca (patch)
tree491f6a5e4111484c8a05ecd83e3fa606d2409c6d /lib
parent6d339f9000055a59249cedea3ff22e497cc6bb60 (diff)
downloadexternal_llvm-54cc3c2135bcab1a57d792d9026f72e6937934ca.zip
external_llvm-54cc3c2135bcab1a57d792d9026f72e6937934ca.tar.gz
external_llvm-54cc3c2135bcab1a57d792d9026f72e6937934ca.tar.bz2
The .type directive on Solaris uses the # character instead of @.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Sparc/SparcAsmPrinter.cpp4
-rw-r--r--lib/Target/SparcV8/SparcV8AsmPrinter.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp
index 9dabdab..a1f1a9a 100644
--- a/lib/Target/Sparc/SparcAsmPrinter.cpp
+++ b/lib/Target/Sparc/SparcAsmPrinter.cpp
@@ -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);
diff --git a/lib/Target/SparcV8/SparcV8AsmPrinter.cpp b/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
index 9dabdab..a1f1a9a 100644
--- a/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
+++ b/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
@@ -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);