diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-13 17:00:54 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-13 17:00:54 +0000 |
commit | 740d0db812a31a8df4ff1b7d6cfb25a3725f5e01 (patch) | |
tree | 220dfe27c3e4ef478a13b1bcc4a8d40a1f65f9e0 /include/llvm/Metadata.h | |
parent | 39a38ae529e8e8bf92edf4cd39e16be57f59406a (diff) | |
download | external_llvm-740d0db812a31a8df4ff1b7d6cfb25a3725f5e01.zip external_llvm-740d0db812a31a8df4ff1b7d6cfb25a3725f5e01.tar.gz external_llvm-740d0db812a31a8df4ff1b7d6cfb25a3725f5e01.tar.bz2 |
Copy metadata when value is RAUW'd. It is debatable whether this is the right approach for custom metadata data in general. However, right now the only custom data user, "dbg", expects this behavior while FE is constructing llvm IR with debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r-- | include/llvm/Metadata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index e441481..dd79ac0 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -361,6 +361,7 @@ public: void ValueIsDeleted(const Instruction *Inst) { removeMDs(Inst); } + void ValueIsRAUWd(Value *V1, Value *V2); /// ValueIsCloned - This handler is used to update metadata store /// when In1 is cloned to create In2. |