forked from OSchip/llvm-project
now that the debug and eh emitters use a common .set counter,
we can eliminate "flavor". llvm-svn: 98011
This commit is contained in:
parent
9889c1eb9e
commit
4d728127fb
|
@ -288,7 +288,7 @@ DbgScope::~DbgScope() {
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
|
||||||
DwarfDebug::DwarfDebug(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T)
|
DwarfDebug::DwarfDebug(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T)
|
||||||
: DwarfPrinter(OS, A, T, "dbg"), ModuleCU(0),
|
: DwarfPrinter(OS, A, T), ModuleCU(0),
|
||||||
AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(),
|
AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(),
|
||||||
DIEValues(), StringPool(),
|
DIEValues(), StringPool(),
|
||||||
SectionSourceLines(), didInitial(false), shouldEmit(false),
|
SectionSourceLines(), didInitial(false), shouldEmit(false),
|
||||||
|
|
|
@ -39,7 +39,7 @@ using namespace llvm;
|
||||||
|
|
||||||
DwarfException::DwarfException(raw_ostream &OS, AsmPrinter *A,
|
DwarfException::DwarfException(raw_ostream &OS, AsmPrinter *A,
|
||||||
const MCAsmInfo *T)
|
const MCAsmInfo *T)
|
||||||
: DwarfPrinter(OS, A, T, "eh"), shouldEmitTable(false),shouldEmitMoves(false),
|
: DwarfPrinter(OS, A, T), shouldEmitTable(false),shouldEmitMoves(false),
|
||||||
shouldEmitTableModule(false), shouldEmitMovesModule(false),
|
shouldEmitTableModule(false), shouldEmitMovesModule(false),
|
||||||
ExceptionTimer(0) {
|
ExceptionTimer(0) {
|
||||||
if (TimePassesIsEnabled)
|
if (TimePassesIsEnabled)
|
||||||
|
|
|
@ -31,11 +31,10 @@
|
||||||
#include "llvm/ADT/SmallString.h"
|
#include "llvm/ADT/SmallString.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
DwarfPrinter::DwarfPrinter(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T,
|
DwarfPrinter::DwarfPrinter(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T)
|
||||||
const char *flavor)
|
|
||||||
: O(OS), Asm(A), MAI(T), TD(Asm->TM.getTargetData()),
|
: O(OS), Asm(A), MAI(T), TD(Asm->TM.getTargetData()),
|
||||||
RI(Asm->TM.getRegisterInfo()), M(NULL), MF(NULL), MMI(NULL),
|
RI(Asm->TM.getRegisterInfo()), M(NULL), MF(NULL), MMI(NULL),
|
||||||
SubprogramCount(0), Flavor(flavor) {}
|
SubprogramCount(0) {}
|
||||||
|
|
||||||
|
|
||||||
/// getDWLabel - Return the MCSymbol corresponding to the assembler temporary
|
/// getDWLabel - Return the MCSymbol corresponding to the assembler temporary
|
||||||
|
|
|
@ -66,12 +66,7 @@ protected:
|
||||||
/// SubprogramCount - The running count of functions being compiled.
|
/// SubprogramCount - The running count of functions being compiled.
|
||||||
unsigned SubprogramCount;
|
unsigned SubprogramCount;
|
||||||
|
|
||||||
/// Flavor - A unique string indicating what dwarf producer this is, used to
|
DwarfPrinter(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T);
|
||||||
/// unique labels.
|
|
||||||
const char * const Flavor;
|
|
||||||
|
|
||||||
DwarfPrinter(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T,
|
|
||||||
const char *flavor);
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//===------------------------------------------------------------------===//
|
//===------------------------------------------------------------------===//
|
||||||
|
|
Loading…
Reference in New Issue