///
typedef std::map<const Value *, unsigned> ValueMapTy;
ValueMapTy NumberForBB;
///
typedef std::map<const Value *, unsigned> ValueMapTy;
ValueMapTy NumberForBB;
public:
explicit SparcAsmPrinter(raw_ostream &O, TargetMachine &TM,
const TargetAsmInfo *T, CodeGenOpt::Level OL,
bool V)
public:
explicit SparcAsmPrinter(raw_ostream &O, TargetMachine &TM,
const TargetAsmInfo *T, CodeGenOpt::Level OL,
bool V)
- : AsmPrinter(O, TM, T, OL, V) {}
+ : AsmPrinter(O, TM, T, OL, V), BBNumber(0) {}
virtual const char *getPassName() const {
return "Sparc Assembly Printer";
virtual const char *getPassName() const {
return "Sparc Assembly Printer";
// BBNumber is used here so that a given Printer will never give two
// BBs the same name. (If you have a better way, please let me know!)
// BBNumber is used here so that a given Printer will never give two
// BBs the same name. (If you have a better way, please let me know!)
- static unsigned BBNumber = 0;