aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-14 11:35:03 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-14 11:35:03 +0000
commit014f98c7e5cbf41104ab9a86e32b8ce869982934 (patch)
tree87b6a8dd53830f8886d6ebd41090779c571e7966 /lib/Target/PowerPC/PPCAsmPrinter.cpp
parentf7a121285003d7f3b970601cffdcccb5bb71fff8 (diff)
Place dwarf headers at earliest possible point. Well behaved when skipping
functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 8d520e7a95..44ab7f83c2 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -488,8 +488,9 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
/// method to print assembly for each instruction.
///
bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- // FIXME - is this the earliest this can be set?
DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>());
+ // FIXME - should be able to debug coalesced functions.
+ bool IsNormalText = true;
SetupMachineFunction(MF);
O << "\n\n";
@@ -517,13 +518,14 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
".section __TEXT,__textcoal_nt,coalesced,pure_instructions", F);
O << "\t.globl\t" << CurrentFnName << "\n";
O << "\t.weak_definition\t" << CurrentFnName << "\n";
+ IsNormalText = false;
break;
}
EmitAlignment(4, F);
O << CurrentFnName << ":\n";
// Emit pre-function debug information.
- DW.BeginFunction(&MF);
+ DW.BeginFunction(&MF, IsNormalText);
// Print out code for the function.
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();