summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-15 19:34:17 +0000
committerChris Lattner <sabre@nondot.org>2001-10-15 19:34:17 +0000
commitf927bb482eeb0ca90e2429b8a69147713185ea06 (patch)
treebcca48b14512f1be796a84831e4aecebe5cc62f0 /lib
parentc28f6d62585c703fba3dc5c3305283f4f1e6d2d7 (diff)
downloadexternal_llvm-f927bb482eeb0ca90e2429b8a69147713185ea06.zip
external_llvm-f927bb482eeb0ca90e2429b8a69147713185ea06.tar.gz
external_llvm-f927bb482eeb0ca90e2429b8a69147713185ea06.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index 6aa5a21..aa67630 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...