[PBQP] Unique allowed-sets for nodes in the PBQP graph and use pairs of these
[oota-llvm.git] / include / llvm / CodeGen / PBQP / CostAllocator.h
index e8b99378273b9f7d082705d595409c4b590d742d..02d39fe383f1f2dbf7cb275c04a553608b5f6a48 100644 (file)
@@ -28,7 +28,7 @@ namespace PBQP {
 template <typename ValueT>
 class ValuePool {
 public:
-  typedef std::shared_ptr<ValueT> PoolRef;
+  typedef std::shared_ptr<const ValueT> PoolRef;
 
 private:
 
@@ -38,7 +38,6 @@ private:
     PoolEntry(ValuePool &Pool, ValueKeyT Value)
         : Pool(Pool), Value(std::move(Value)) {}
     ~PoolEntry() { Pool.removeEntry(this); }
-    ValueT& getValue() { return Value; }
     const ValueT& getValue() const { return Value; }
   private:
     ValuePool &Pool;