summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/EmitAssembly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/Sparc/EmitAssembly.cpp')
-rw-r--r--llvm/lib/Target/Sparc/EmitAssembly.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp
index 6aa5a21c12f..aa676301e48 100644
--- a/llvm/lib/Target/Sparc/EmitAssembly.cpp
+++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp
@@ -214,6 +214,7 @@ void SparcAsmPrinter::emitMethod(const Method *M) {
enterSection(Text);
Out << "\t.align 4\n\t.global\t" << MethName << "\n";
//Out << "\t.type\t" << MethName << ",#function\n";
+ Out << "\t.type\t" << MethName << ", 2\n";
Out << MethName << ":\n";
// Output code for all of the basic blocks in the method...
OpenPOWER on IntegriCloud