aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-02-15 09:09:29 +0000
committerEric Christopher <echristo@apple.com>2012-02-15 09:09:29 +0000
commitf32a960fd32b32f84bb486458ccbc905af490da9 (patch)
tree90c00395fcdcd46d9336607b0e376d42e9dbf43b /include/llvm
parent900d7b78e6cacca6c6062abf803d7ab1a4e39b38 (diff)
Add a way to replace a field inside a metadata node. This can be
used to incrementally update a created node without needing a temporary node and RAUW. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Metadata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index 9466a5791c..29458ef346 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -135,6 +135,9 @@ public:
/// deleteTemporary - Deallocate a node created by getTemporary. The
/// node must not have any users.
static void deleteTemporary(MDNode *N);
+
+ /// replaceOperandWith - Replace a specific operand.
+ void replaceOperandWith(unsigned i, Value *NewVal);
/// getOperand - Return specified operand.
Value *getOperand(unsigned i) const;