2005-12-21 20:44:40 +01:00
|
|
|
//===-- llvm/CodeGen/DwarfWriter.h - Dwarf Framework ------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by James M. Laskey and is distributed under the
|
|
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2006-01-17 18:31:53 +01:00
|
|
|
// This file contains support for writing Dwarf debug info into asm files. For
|
|
|
|
// Details on the Dwarf 3 specfication see DWARF Debugging Information Format
|
|
|
|
// V.3 reference manual http://dwarf.freestandards.org ,
|
2005-12-21 20:44:40 +01:00
|
|
|
//
|
2006-01-17 18:31:53 +01:00
|
|
|
// The role of the Dwarf Writer class is to extract debug information from the
|
|
|
|
// MachineDebugInfo object, organize it in Dwarf form and then emit it into asm
|
|
|
|
// the current asm file using data and high level Dwarf directives.
|
|
|
|
//
|
2005-12-21 20:44:40 +01:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2006-01-17 20:12:24 +01:00
|
|
|
#ifndef LLVM_CODEGEN_DWARFWRITER_H
|
|
|
|
#define LLVM_CODEGEN_DWARFWRITER_H
|
2005-12-21 20:44:40 +01:00
|
|
|
|
2006-01-17 18:31:53 +01:00
|
|
|
#include "llvm/ADT/UniqueVector.h"
|
2006-01-27 19:32:41 +01:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
2006-01-17 18:31:53 +01:00
|
|
|
|
2006-01-04 23:28:25 +01:00
|
|
|
#include <iosfwd>
|
2006-01-17 18:31:53 +01:00
|
|
|
#include <string>
|
|
|
|
|
2006-01-04 14:52:30 +01:00
|
|
|
|
2005-12-21 20:46:32 +01:00
|
|
|
namespace llvm {
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
// Forward declarations.
|
|
|
|
|
|
|
|
class AsmPrinter;
|
2006-02-27 18:27:12 +01:00
|
|
|
class CompileUnit;
|
2006-02-27 13:43:29 +01:00
|
|
|
class CompileUnitDesc;
|
|
|
|
class DebugInfoDesc;
|
2006-03-23 19:07:55 +01:00
|
|
|
class DebugVariable;
|
|
|
|
class DebugScope;
|
2006-02-27 13:43:29 +01:00
|
|
|
class DIE;
|
|
|
|
class DIEAbbrev;
|
|
|
|
class GlobalVariableDesc;
|
|
|
|
class MachineDebugInfo;
|
|
|
|
class MachineFunction;
|
2006-04-07 18:34:46 +02:00
|
|
|
class MachineLocation;
|
|
|
|
class MachineMove;
|
2006-02-27 13:43:29 +01:00
|
|
|
class Module;
|
2006-04-07 18:34:46 +02:00
|
|
|
class MRegisterInfo;
|
2006-02-27 13:43:29 +01:00
|
|
|
class SubprogramDesc;
|
2006-06-23 14:51:53 +02:00
|
|
|
class SourceLineInfo;
|
2006-09-06 20:34:40 +02:00
|
|
|
class TargetAsmInfo;
|
2006-04-07 18:34:46 +02:00
|
|
|
class TargetData;
|
2006-02-27 13:43:29 +01:00
|
|
|
class Type;
|
|
|
|
class TypeDesc;
|
2006-01-04 14:52:30 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// DWLabel - Labels are used to track locations in the assembler file.
|
|
|
|
// Labels appear in the form <prefix>debug_<Tag><Number>, where the tag is a
|
|
|
|
// category of label (Ex. location) and number is a value unique in that
|
|
|
|
// category.
|
|
|
|
class DWLabel {
|
|
|
|
public:
|
|
|
|
const char *Tag; // Label category tag. Should always be
|
|
|
|
// a staticly declared C string.
|
|
|
|
unsigned Number; // Unique number.
|
|
|
|
|
|
|
|
DWLabel(const char *T, unsigned N) : Tag(T), Number(N) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// DwarfWriter - Emits Dwarf debug and exception handling directives.
|
|
|
|
//
|
|
|
|
class DwarfWriter {
|
2006-09-06 20:34:40 +02:00
|
|
|
|
|
|
|
private:
|
2006-02-27 13:43:29 +01:00
|
|
|
|
2006-01-20 21:34:06 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
2006-02-27 13:43:29 +01:00
|
|
|
// Core attributes used by the Dwarf writer.
|
2006-01-20 21:34:06 +01:00
|
|
|
//
|
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
//
|
|
|
|
/// O - Stream to .s file.
|
|
|
|
///
|
|
|
|
std::ostream &O;
|
|
|
|
|
|
|
|
/// Asm - Target of Dwarf emission.
|
|
|
|
///
|
|
|
|
AsmPrinter *Asm;
|
2006-01-20 21:34:06 +01:00
|
|
|
|
2006-09-06 20:34:40 +02:00
|
|
|
/// TAI - Target Asm Printer.
|
2006-09-08 00:06:40 +02:00
|
|
|
const TargetAsmInfo *TAI;
|
2006-09-06 20:34:40 +02:00
|
|
|
|
2006-04-07 18:34:46 +02:00
|
|
|
/// TD - Target data.
|
2006-05-03 03:29:57 +02:00
|
|
|
const TargetData *TD;
|
2006-04-07 18:34:46 +02:00
|
|
|
|
|
|
|
/// RI - Register Information.
|
|
|
|
const MRegisterInfo *RI;
|
|
|
|
|
2006-03-23 19:07:55 +01:00
|
|
|
/// M - Current module.
|
|
|
|
///
|
|
|
|
Module *M;
|
|
|
|
|
|
|
|
/// MF - Current machine function.
|
|
|
|
///
|
|
|
|
MachineFunction *MF;
|
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// DebugInfo - Collected debug information.
|
|
|
|
///
|
|
|
|
MachineDebugInfo *DebugInfo;
|
|
|
|
|
|
|
|
/// didInitial - Flag to indicate if initial emission has been done.
|
|
|
|
///
|
|
|
|
bool didInitial;
|
2006-01-20 21:34:06 +01:00
|
|
|
|
2006-06-14 13:35:03 +02:00
|
|
|
/// shouldEmit - Flag to indicate if debug information should be emitted.
|
|
|
|
///
|
|
|
|
bool shouldEmit;
|
|
|
|
|
2006-03-23 19:07:55 +01:00
|
|
|
/// SubprogramCount - The running count of functions being compiled.
|
|
|
|
///
|
|
|
|
unsigned SubprogramCount;
|
|
|
|
|
2006-01-17 18:31:53 +01:00
|
|
|
//===--------------------------------------------------------------------===//
|
2006-02-27 13:43:29 +01:00
|
|
|
// Attributes used to construct specific Dwarf sections.
|
|
|
|
//
|
|
|
|
|
|
|
|
/// CompileUnits - All the compile units involved in this build. The index
|
|
|
|
/// of each entry in this vector corresponds to the sources in DebugInfo.
|
2006-02-27 18:27:12 +01:00
|
|
|
std::vector<CompileUnit *> CompileUnits;
|
2006-01-17 18:31:53 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// Abbreviations - A UniqueVector of TAG structure abbreviations.
|
|
|
|
///
|
|
|
|
UniqueVector<DIEAbbrev> Abbreviations;
|
|
|
|
|
|
|
|
/// StringPool - A UniqueVector of strings used by indirect references.
|
2006-02-27 18:27:12 +01:00
|
|
|
/// UnitMap - Map debug information descriptor to compile unit.
|
|
|
|
///
|
2006-02-27 13:43:29 +01:00
|
|
|
UniqueVector<std::string> StringPool;
|
2006-02-27 18:27:12 +01:00
|
|
|
|
|
|
|
/// UnitMap - Map debug information descriptor to compile unit.
|
|
|
|
///
|
|
|
|
std::map<DebugInfoDesc *, CompileUnit *> DescToUnitMap;
|
2006-02-27 13:43:29 +01:00
|
|
|
|
2006-03-24 00:02:34 +01:00
|
|
|
/// DescToDieMap - Tracks the mapping of top level debug informaton
|
|
|
|
/// descriptors to debug information entries.
|
2006-02-27 13:43:29 +01:00
|
|
|
std::map<DebugInfoDesc *, DIE *> DescToDieMap;
|
|
|
|
|
2006-06-23 14:51:53 +02:00
|
|
|
/// SectionMap - Provides a unique id per text section.
|
|
|
|
///
|
|
|
|
UniqueVector<std::string> SectionMap;
|
|
|
|
|
|
|
|
/// SectionSourceLines - Tracks line numbers per text section.
|
2006-02-27 13:43:29 +01:00
|
|
|
///
|
2006-06-23 14:51:53 +02:00
|
|
|
std::vector<std::vector<SourceLineInfo *> > SectionSourceLines;
|
2006-01-17 18:31:53 +01:00
|
|
|
|
|
|
|
|
2006-09-06 20:34:40 +02:00
|
|
|
public:
|
2006-01-20 21:34:06 +01:00
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
2006-02-27 13:43:29 +01:00
|
|
|
// Emission and print routines
|
2006-01-20 21:34:06 +01:00
|
|
|
//
|
2006-01-17 18:31:53 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// PrintHex - Print a value as a hexidecimal value.
|
|
|
|
///
|
|
|
|
void PrintHex(int Value) const;
|
|
|
|
|
|
|
|
/// EOL - Print a newline character to asm stream. If a comment is present
|
|
|
|
/// then it will be printed first. Comments should not contain '\n'.
|
|
|
|
void EOL(const std::string &Comment) const;
|
2006-03-23 19:07:55 +01:00
|
|
|
|
|
|
|
/// EmitAlign - Print a align directive.
|
|
|
|
///
|
|
|
|
void EmitAlign(unsigned Alignment) const;
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// EmitULEB128Bytes - Emit an assembler byte data directive to compose an
|
|
|
|
/// unsigned leb128 value.
|
|
|
|
void EmitULEB128Bytes(unsigned Value) const;
|
2006-01-20 21:34:06 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// EmitSLEB128Bytes - print an assembler byte data directive to compose a
|
|
|
|
/// signed leb128 value.
|
|
|
|
void EmitSLEB128Bytes(int Value) const;
|
2006-01-17 18:31:53 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// PrintULEB128 - Print a series of hexidecimal values (separated by
|
|
|
|
/// commas) representing an unsigned leb128 value.
|
|
|
|
void PrintULEB128(unsigned Value) const;
|
|
|
|
|
|
|
|
/// SizeULEB128 - Compute the number of bytes required for an unsigned
|
|
|
|
/// leb128 value.
|
|
|
|
static unsigned SizeULEB128(unsigned Value);
|
2006-01-04 14:52:30 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// PrintSLEB128 - Print a series of hexidecimal values (separated by
|
|
|
|
/// commas) representing a signed leb128 value.
|
|
|
|
void PrintSLEB128(int Value) const;
|
|
|
|
|
|
|
|
/// SizeSLEB128 - Compute the number of bytes required for a signed leb128
|
|
|
|
/// value.
|
|
|
|
static unsigned SizeSLEB128(int Value);
|
|
|
|
|
|
|
|
/// EmitInt8 - Emit a byte directive and value.
|
|
|
|
///
|
|
|
|
void EmitInt8(int Value) const;
|
2006-01-04 23:28:25 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// EmitInt16 - Emit a short directive and value.
|
|
|
|
///
|
|
|
|
void EmitInt16(int Value) const;
|
|
|
|
|
|
|
|
/// EmitInt32 - Emit a long directive and value.
|
|
|
|
///
|
|
|
|
void EmitInt32(int Value) const;
|
|
|
|
|
|
|
|
/// EmitInt64 - Emit a long long directive and value.
|
|
|
|
///
|
|
|
|
void EmitInt64(uint64_t Value) const;
|
|
|
|
|
|
|
|
/// EmitString - Emit a string with quotes and a null terminator.
|
2006-05-19 21:07:54 +02:00
|
|
|
/// Special characters are emitted properly.
|
|
|
|
/// \literal (Eg. '\t') \endliteral
|
2006-02-27 13:43:29 +01:00
|
|
|
void EmitString(const std::string &String) const;
|
|
|
|
|
|
|
|
/// PrintLabelName - Print label name in form used by Dwarf writer.
|
|
|
|
///
|
|
|
|
void PrintLabelName(DWLabel Label) const {
|
|
|
|
PrintLabelName(Label.Tag, Label.Number);
|
|
|
|
}
|
|
|
|
void PrintLabelName(const char *Tag, unsigned Number) const;
|
|
|
|
|
|
|
|
/// EmitLabel - Emit location label for internal use by Dwarf.
|
|
|
|
///
|
|
|
|
void EmitLabel(DWLabel Label) const {
|
|
|
|
EmitLabel(Label.Tag, Label.Number);
|
|
|
|
}
|
|
|
|
void EmitLabel(const char *Tag, unsigned Number) const;
|
|
|
|
|
|
|
|
/// EmitReference - Emit a reference to a label.
|
|
|
|
///
|
|
|
|
void EmitReference(DWLabel Label) const {
|
|
|
|
EmitReference(Label.Tag, Label.Number);
|
|
|
|
}
|
|
|
|
void EmitReference(const char *Tag, unsigned Number) const;
|
|
|
|
void EmitReference(const std::string &Name) const;
|
|
|
|
|
|
|
|
/// EmitDifference - Emit the difference between two labels. Some
|
|
|
|
/// assemblers do not behave with absolute expressions with data directives,
|
|
|
|
/// so there is an option (needsSet) to use an intermediary set expression.
|
|
|
|
void EmitDifference(DWLabel LabelHi, DWLabel LabelLo) const {
|
|
|
|
EmitDifference(LabelHi.Tag, LabelHi.Number, LabelLo.Tag, LabelLo.Number);
|
|
|
|
}
|
|
|
|
void EmitDifference(const char *TagHi, unsigned NumberHi,
|
|
|
|
const char *TagLo, unsigned NumberLo) const;
|
2006-03-24 00:02:34 +01:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// NewAbbreviation - Add the abbreviation to the Abbreviation vector.
|
|
|
|
///
|
|
|
|
unsigned NewAbbreviation(DIEAbbrev *Abbrev);
|
|
|
|
|
|
|
|
/// NewString - Add a string to the constant pool and returns a label.
|
|
|
|
///
|
|
|
|
DWLabel NewString(const std::string &String);
|
|
|
|
|
2006-03-24 00:02:34 +01:00
|
|
|
/// getDieMapSlotFor - Returns the debug information entry map slot for the
|
|
|
|
/// specified debug descriptor.
|
|
|
|
DIE *&getDieMapSlotFor(DebugInfoDesc *DD);
|
|
|
|
|
2006-02-22 20:02:11 +01:00
|
|
|
private:
|
2006-02-23 17:58:18 +01:00
|
|
|
|
2006-03-23 19:07:55 +01:00
|
|
|
/// AddSourceLine - Add location information to specified debug information
|
|
|
|
/// entry.
|
|
|
|
void AddSourceLine(DIE *Die, CompileUnitDesc *File, unsigned Line);
|
|
|
|
|
2006-03-28 16:58:32 +02:00
|
|
|
/// AddAddress - Add an address attribute to a die based on the location
|
|
|
|
/// provided.
|
2006-04-07 18:34:46 +02:00
|
|
|
void AddAddress(DIE *Die, unsigned Attribute,
|
|
|
|
const MachineLocation &Location);
|
2006-03-28 16:58:32 +02:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// NewType - Create a new type DIE.
|
|
|
|
///
|
2006-03-24 00:02:34 +01:00
|
|
|
DIE *NewType(DIE *Context, TypeDesc *TyDesc, CompileUnit *Unit);
|
2006-02-27 13:43:29 +01:00
|
|
|
|
2006-02-27 18:27:12 +01:00
|
|
|
/// NewCompileUnit - Create new compile unit and it's die.
|
2006-02-27 13:43:29 +01:00
|
|
|
///
|
2006-02-27 18:27:12 +01:00
|
|
|
CompileUnit *NewCompileUnit(CompileUnitDesc *UnitDesc, unsigned ID);
|
|
|
|
|
|
|
|
/// FindCompileUnit - Get the compile unit for the given descriptor.
|
|
|
|
///
|
|
|
|
CompileUnit *FindCompileUnit(CompileUnitDesc *UnitDesc);
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// NewGlobalVariable - Make a new global variable DIE.
|
|
|
|
///
|
|
|
|
DIE *NewGlobalVariable(GlobalVariableDesc *GVD);
|
|
|
|
|
|
|
|
/// NewSubprogram - Add a new subprogram DIE.
|
|
|
|
///
|
|
|
|
DIE *NewSubprogram(SubprogramDesc *SPD);
|
|
|
|
|
2006-03-23 19:07:55 +01:00
|
|
|
/// NewScopeVariable - Create a new scope variable.
|
|
|
|
///
|
|
|
|
DIE *NewScopeVariable(DebugVariable *DV, CompileUnit *Unit);
|
|
|
|
|
|
|
|
/// ConstructScope - Construct the components of a scope.
|
|
|
|
///
|
|
|
|
void ConstructScope(DebugScope *ParentScope, DIE *ParentDie,
|
|
|
|
CompileUnit *Unit);
|
|
|
|
|
|
|
|
/// ConstructRootScope - Construct the scope for the subprogram.
|
|
|
|
///
|
|
|
|
void ConstructRootScope(DebugScope *RootScope);
|
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// EmitInitial - Emit initial Dwarf declarations.
|
|
|
|
///
|
2006-06-14 13:35:03 +02:00
|
|
|
void EmitInitial();
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// EmitDIE - Recusively Emits a debug information entry.
|
|
|
|
///
|
|
|
|
void EmitDIE(DIE *Die) const;
|
|
|
|
|
|
|
|
/// SizeAndOffsetDie - Compute the size and offset of a DIE.
|
|
|
|
///
|
2006-03-23 19:07:55 +01:00
|
|
|
unsigned SizeAndOffsetDie(DIE *Die, unsigned Offset, bool Last);
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// SizeAndOffsets - Compute the size and offset of all the DIEs.
|
|
|
|
///
|
|
|
|
void SizeAndOffsets();
|
|
|
|
|
2006-04-07 18:34:46 +02:00
|
|
|
/// EmitFrameMoves - Emit frame instructions to describe the layout of the
|
|
|
|
/// frame.
|
|
|
|
void EmitFrameMoves(const char *BaseLabel, unsigned BaseLabelID,
|
|
|
|
std::vector<MachineMove *> &Moves);
|
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// EmitDebugInfo - Emit the debug info section.
|
|
|
|
///
|
|
|
|
void EmitDebugInfo() const;
|
|
|
|
|
|
|
|
/// EmitAbbreviations - Emit the abbreviation section.
|
|
|
|
///
|
|
|
|
void EmitAbbreviations() const;
|
|
|
|
|
|
|
|
/// EmitDebugLines - Emit source line information.
|
|
|
|
///
|
|
|
|
void EmitDebugLines() const;
|
|
|
|
|
2006-04-07 18:34:46 +02:00
|
|
|
/// EmitInitialDebugFrame - Emit common frame info into a debug frame section.
|
2006-02-27 13:43:29 +01:00
|
|
|
///
|
2006-04-07 18:34:46 +02:00
|
|
|
void EmitInitialDebugFrame();
|
|
|
|
|
|
|
|
/// EmitFunctionDebugFrame - Emit per function frame info into a debug frame
|
|
|
|
/// section.
|
|
|
|
void EmitFunctionDebugFrame();
|
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// EmitDebugPubNames - Emit info into a debug pubnames section.
|
|
|
|
///
|
|
|
|
void EmitDebugPubNames();
|
|
|
|
|
|
|
|
/// EmitDebugStr - Emit info into a debug str section.
|
|
|
|
///
|
|
|
|
void EmitDebugStr();
|
|
|
|
|
|
|
|
/// EmitDebugLoc - Emit info into a debug loc section.
|
|
|
|
///
|
|
|
|
void EmitDebugLoc();
|
|
|
|
|
|
|
|
/// EmitDebugARanges - Emit info into a debug aranges section.
|
|
|
|
///
|
|
|
|
void EmitDebugARanges();
|
|
|
|
|
|
|
|
/// EmitDebugRanges - Emit info into a debug ranges section.
|
|
|
|
///
|
|
|
|
void EmitDebugRanges();
|
|
|
|
|
|
|
|
/// EmitDebugMacInfo - Emit info into a debug macinfo section.
|
|
|
|
///
|
|
|
|
void EmitDebugMacInfo();
|
|
|
|
|
|
|
|
/// ConstructCompileUnitDIEs - Create a compile unit DIE for each source and
|
|
|
|
/// header file.
|
|
|
|
void ConstructCompileUnitDIEs();
|
|
|
|
|
|
|
|
/// ConstructGlobalDIEs - Create DIEs for each of the externally visible
|
|
|
|
/// global variables.
|
2006-03-23 19:07:55 +01:00
|
|
|
void ConstructGlobalDIEs();
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// ConstructSubprogramDIEs - Create DIEs for each of the externally visible
|
|
|
|
/// subprograms.
|
2006-03-23 19:07:55 +01:00
|
|
|
void ConstructSubprogramDIEs();
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// ShouldEmitDwarf - Returns true if Dwarf declarations should be made.
|
2006-06-14 13:35:03 +02:00
|
|
|
///
|
|
|
|
bool ShouldEmitDwarf() const { return shouldEmit; }
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2006-09-08 00:06:40 +02:00
|
|
|
DwarfWriter(std::ostream &OS, AsmPrinter *A, const TargetAsmInfo *T);
|
2006-02-27 13:43:29 +01:00
|
|
|
virtual ~DwarfWriter();
|
|
|
|
|
2006-09-06 20:34:40 +02:00
|
|
|
// Accessors.
|
|
|
|
//
|
2006-09-08 00:06:40 +02:00
|
|
|
const TargetAsmInfo *getTargetAsmInfo() const { return TAI; }
|
2006-09-06 20:34:40 +02:00
|
|
|
|
2006-02-27 13:43:29 +01:00
|
|
|
/// SetDebugInfo - Set DebugInfo when it's known that pass manager has
|
|
|
|
/// created it. Set by the target AsmPrinter.
|
2006-04-07 18:34:46 +02:00
|
|
|
void SetDebugInfo(MachineDebugInfo *DI);
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
// Main entry points.
|
|
|
|
//
|
|
|
|
|
|
|
|
/// BeginModule - Emit all Dwarf sections that should come prior to the
|
|
|
|
/// content.
|
2006-03-23 19:07:55 +01:00
|
|
|
void BeginModule(Module *M);
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// EndModule - Emit all Dwarf sections that should come after the content.
|
|
|
|
///
|
2006-03-23 19:07:55 +01:00
|
|
|
void EndModule();
|
2006-02-27 13:43:29 +01:00
|
|
|
|
2006-04-07 22:44:42 +02:00
|
|
|
/// BeginFunction - Gather pre-function debug information. Assumes being
|
|
|
|
/// emitted immediately after the function entry point.
|
2006-06-23 14:51:53 +02:00
|
|
|
void BeginFunction(MachineFunction *MF);
|
2006-02-27 13:43:29 +01:00
|
|
|
|
|
|
|
/// EndFunction - Gather and emit post-function debug information.
|
|
|
|
///
|
2006-03-23 19:07:55 +01:00
|
|
|
void EndFunction();
|
2006-06-14 13:35:03 +02:00
|
|
|
|
|
|
|
/// NonFunction - Function does not have a true body.
|
|
|
|
///
|
|
|
|
void NonFunction();
|
2006-02-27 13:43:29 +01:00
|
|
|
};
|
2005-12-21 20:44:40 +01:00
|
|
|
|
2005-12-21 20:46:32 +01:00
|
|
|
} // end llvm namespace
|
2005-12-21 20:44:40 +01:00
|
|
|
|
2005-12-22 02:40:06 +01:00
|
|
|
#endif
|