From f927bb482eeb0ca90e2429b8a69147713185ea06 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Oct 2001 19:34:17 +0000 Subject: [PATCH] Emit the proper .type declarations to tell the debugger what a function is git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@845 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 6aa5a21c12f..aa676301e48 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.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...