/// BeginModule - Emit all dwarf sections that should come prior to the content.
///
void DwarfWriter::BeginModule() {
+ if (!DebugInfo.hasInfo()) return;
EmitComment("Dwarf Begin Module");
// define base addresses for dwarf sections
/// EndModule - Emit all dwarf sections that should come after the content.
///
void DwarfWriter::EndModule() {
+ if (!DebugInfo.hasInfo()) return;
EmitComment("Dwarf End Module");
// Print out dwarf file info
std::vector<std::string> Sources = DebugInfo.getSourceFiles();
/// BeginFunction - Emit pre-function debug information.
///
void DwarfWriter::BeginFunction() {
+ if (!DebugInfo.hasInfo()) return;
EmitComment("Dwarf Begin Function");
}
/// EndFunction - Emit post-function debug information.
///
void DwarfWriter::EndFunction() {
+ if (!DebugInfo.hasInfo()) return;
EmitComment("Dwarf End Function");
}