diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-06-14 11:35:03 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-06-14 11:35:03 +0000 |
commit | f67bec057905529f4613bd23b56dd5134cb64303 (patch) | |
tree | a963825dadf866055cb35cda319d661e36f634cb /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | |
parent | 0c4f5a655a31b7419b09617c64119a5ebdb51e27 (diff) | |
download | bcm5719-llvm-f67bec057905529f4613bd23b56dd5134cb64303.tar.gz bcm5719-llvm-f67bec057905529f4613bd23b56dd5134cb64303.zip |
Place dwarf headers at earliest possible point. Well behaved when skipping
functions.
llvm-svn: 28781
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 8d520e7a956..44ab7f83c2d 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/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(); |