diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-26 21:45:04 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-26 21:45:04 +0000 |
commit | d2d689e500f40b476af4093481b7f6d49fe80994 (patch) | |
tree | 2eda17446b646089b3212f7ab1881777fcdef14d /lib/Target/Sparc | |
parent | c6843cae0f2a5e2f273311afb6e85dd14fd207be (diff) | |
download | external_llvm-d2d689e500f40b476af4093481b7f6d49fe80994.zip external_llvm-d2d689e500f40b476af4093481b7f6d49fe80994.tar.gz external_llvm-d2d689e500f40b476af4093481b7f6d49fe80994.tar.bz2 |
Privatize some data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp index cb2ea02..cb23f62 100644 --- a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp @@ -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"; |