From 3294e7c14b697b1c1c327e01bc0497eb10ad2133 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Oct 2001 19:34:17 +0000 Subject: Emit the proper .type declarations to tell the debugger what a function is llvm-svn: 845 --- llvm/lib/Target/Sparc/EmitAssembly.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib') 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... -- cgit v1.2.3