mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-16 02:09:14 +00:00
Added destructor for template class FoldingSetNodeWrapper.
Added getValue() to FoldingSetNodeWrapper. llvm-svn: 46465
This commit is contained in:
parent
ad2a3eb416
commit
752475ffa1
@ -329,7 +329,7 @@ class FoldingSetNodeWrapper : public FoldingSetNode {
|
||||
T data;
|
||||
public:
|
||||
FoldingSetNodeWrapper(const T& x) : data(x) {}
|
||||
virtual ~FoldingSetNodeWrapper();
|
||||
virtual ~FoldingSetNodeWrapper() {}
|
||||
|
||||
template<typename A1>
|
||||
explicit FoldingSetNodeWrapper(const A1& a1)
|
||||
@ -356,6 +356,9 @@ public:
|
||||
|
||||
void Profile(FoldingSetNodeID& ID) { FoldingSetTrait<T>::Profile(data, ID); }
|
||||
|
||||
T& getValue() { return data; }
|
||||
const T& getValue() const { return data; }
|
||||
|
||||
operator T&() { return data; }
|
||||
operator const T&() const { return data; }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user