mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
Emit debug info for data-only files on Cell SPU.
I cannot test this target, let me know if it breaks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
757809a170
commit
d03772466a
@ -273,11 +273,13 @@ namespace {
|
||||
struct VISIBILITY_HIDDEN LinuxAsmPrinter : public SPUAsmPrinter {
|
||||
|
||||
DwarfWriter DW;
|
||||
MachineModuleInfo *MMI;
|
||||
|
||||
LinuxAsmPrinter(std::ostream &O, SPUTargetMachine &TM,
|
||||
const TargetAsmInfo *T) :
|
||||
SPUAsmPrinter(O, TM, T),
|
||||
DW(O, this, T)
|
||||
DW(O, this, T),
|
||||
MMI(0)
|
||||
{ }
|
||||
|
||||
virtual const char *getPassName() const {
|
||||
@ -422,8 +424,6 @@ std::string LinuxAsmPrinter::getSectionForFunction(const Function &F) const {
|
||||
bool
|
||||
LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF)
|
||||
{
|
||||
DW.SetModuleInfo(&getAnalysis<MachineModuleInfo>());
|
||||
|
||||
SetupMachineFunction(MF);
|
||||
O << "\n\n";
|
||||
|
||||
@ -488,6 +488,8 @@ bool LinuxAsmPrinter::doInitialization(Module &M) {
|
||||
SwitchToTextSection(TAI->getTextSection());
|
||||
// Emit initial debug information.
|
||||
DW.BeginModule(&M);
|
||||
MMI = getAnalysisToUpdate<MachineModuleInfo>();
|
||||
DW.SetModuleInfo(MMI);
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user