Emit the proper .type declarations to tell the debugger what a function is
authorChris Lattner <sabre@nondot.org>
Mon, 15 Oct 2001 19:34:17 +0000 (19:34 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Oct 2001 19:34:17 +0000 (19:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@845 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9AsmPrinter.cpp

index 6aa5a21c12f201cd83a586b0867ef6b7b0a9284c..aa676301e48bacbbc422de585eb20611ea912d54 100644 (file)
@@ -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...