Enable DebugInfo support for COFF object files.

Patch by Nathan Jeffords!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2011-02-24 21:04:00 +00:00
parent 8c20ec54d9
commit f410608271
19 changed files with 132 additions and 5 deletions
+23
View File
@@ -276,6 +276,29 @@ void DIELabel::print(raw_ostream &O) {
}
#endif
//===----------------------------------------------------------------------===//
// DIESectionOffset Implementation
//===----------------------------------------------------------------------===//
/// EmitValue - Emit label value.
///
void DIESectionOffset::EmitValue(AsmPrinter *AP, unsigned Form) const {
AP->EmitSectionOffset (Label, Label);
}
/// SizeOf - Determine size of label value in bytes.
///
unsigned DIESectionOffset::SizeOf(AsmPrinter *AP, unsigned Form) const {
if (Form == dwarf::DW_FORM_data4) return 4;
return AP->getTargetData().getPointerSize();
}
#ifndef NDEBUG
void DIESectionOffset::print(raw_ostream &O) {
O << "SecRelLbl: " << Label->getName();
}
#endif
//===----------------------------------------------------------------------===//
// DIEDelta Implementation
//===----------------------------------------------------------------------===//