Privatize some data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2009-06-26 21:45:04 +00:00
parent afe0a083c1
commit 2af72d455b

View File

@ -47,11 +47,12 @@ namespace {
///
typedef std::map<const Value *, unsigned> ValueMapTy;
ValueMapTy NumberForBB;
unsigned BBNumber;
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";
@ -102,7 +103,6 @@ bool SparcAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
// 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;
O << "\n\n";