|
@@ -50,8 +50,10 @@ class BlockValueStore : public Yaml::Printable<BlockValueStore<IdT>> {
|
|
|
return values_.Get(id);
|
|
return values_.Get(id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Returns the requested block.
|
|
|
|
|
- auto Get(IdT id) -> llvm::MutableArrayRef<ElementType> {
|
|
|
|
|
|
|
+ // Returns a mutable view of the requested block. This operation should be
|
|
|
|
|
+ // avoided where possible; we generally want blocks to be immutable once
|
|
|
|
|
+ // created.
|
|
|
|
|
+ auto GetMutable(IdT id) -> llvm::MutableArrayRef<ElementType> {
|
|
|
return values_.Get(id);
|
|
return values_.Get(id);
|
|
|
}
|
|
}
|
|
|
|
|
|