git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111128
91177308-0d34-0410-b5e6-
96231b3b80d8
/// is often much larger than necessary, and the possibility of heap
/// allocation means it requires a non-trivial destructor call.
class FoldingSetNodeIDRef {
/// is often much larger than necessary, and the possibility of heap
/// allocation means it requires a non-trivial destructor call.
class FoldingSetNodeIDRef {
size_t Size;
public:
FoldingSetNodeIDRef() : Data(0), Size(0) {}
size_t Size;
public:
FoldingSetNodeIDRef() : Data(0), Size(0) {}
- FoldingSetNodeIDRef(unsigned *D, size_t S) : Data(D), Size(S) {}
+ FoldingSetNodeIDRef(const unsigned *D, size_t S) : Data(D), Size(S) {}
- unsigned *getData() const { return Data; }
+ const unsigned *getData() const { return Data; }
size_t getSize() const { return Size; }
};
size_t getSize() const { return Size; }
};