mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +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:
@@ -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(); }
|
||||||
|
Reference in New Issue
Block a user