mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Initialize DenseSets lazily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ae45af794
commit
5333658df7
@ -28,7 +28,7 @@ class DenseSet {
|
|||||||
MapTy TheMap;
|
MapTy TheMap;
|
||||||
public:
|
public:
|
||||||
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
|
DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
|
||||||
explicit DenseSet(unsigned NumInitBuckets = 64) : TheMap(NumInitBuckets) {}
|
explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
|
||||||
|
|
||||||
bool empty() const { return TheMap.empty(); }
|
bool empty() const { return TheMap.empty(); }
|
||||||
unsigned size() const { return TheMap.size(); }
|
unsigned size() const { return TheMap.size(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user