ITable: Add Persist function to make a key persistent.

This commit is contained in:
Peter Johnson
2015-07-23 21:53:33 -07:00
parent 1368f0ec8f
commit 3f24b86875
3 changed files with 21 additions and 0 deletions

View File

@@ -95,6 +95,13 @@ class NetworkTable : public ITable {
bool ContainsSubTable(llvm::StringRef key) const;
/**
* Makes a key's value persistent through program restarts.
*
* @param key the key to make persistent
*/
void Persist(llvm::StringRef key);
/**
* Maps the specified key to the specified value in this table. The key can
* not be null. The value can be retrieved by calling the get method with a