llvm.org GIT mirror llvm / 930e4d9
Add source debug information to the Sparc code generator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81215 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Pennington 10 years ago
3 changed file(s) with 11 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
103103
104104 O << "\t.type\t" << CurrentFnName << ", #function\n";
105105 O << CurrentFnName << ":\n";
106 // Emit pre-function debug information.
107 DW->BeginFunction(&MF);
106108
107109 // Number each basic block so that we can consistently refer to them
108110 // in PC-relative references.
128130 ++EmittedInsts;
129131 }
130132 }
133
134 // Emit post-function debug information.
135 DW->EndFunction(&MF);
131136
132137 // We didn't modify anything.
133138 return false;
2121 ZeroDirective = "\t.skip\t";
2222 CommentString = "!";
2323 COMMDirectiveTakesAlignment = true;
24 HasLEB128 = true;
25 AbsoluteDebugSectionOffsets = true;
26 SupportsDebugInformation = true;
2427
2528 SunStyleELFSectionSwitchSyntax = true;
2629 UsesELFSectionDirectiveForBSS = true;
168168 }
169169
170170 unsigned SparcRegisterInfo::getRARegister() const {
171 llvm_unreachable("What is the return address register");
172 return 0;
171 return SP::I7;
173172 }
174173
175174 unsigned SparcRegisterInfo::getFrameRegister(MachineFunction &MF) const {
176 llvm_unreachable("What is the frame register");
177 return SP::G1;
175 return SP::I6;
178176 }
179177
180178 unsigned SparcRegisterInfo::getEHExceptionRegister() const {
188186 }
189187
190188 int SparcRegisterInfo::getDwarfRegNum(unsigned RegNum, bool isEH) const {
191 llvm_unreachable("What is the dwarf register number");
192 return -1;
189 return SparcGenRegisterInfo::getDwarfRegNumFull(RegNum, 0);
193190 }
194191
195192 #include "SparcGenRegisterInfo.inc"