summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-06-24 17:42:21 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-06-24 17:42:21 +0000
commit43c5139fd2b97f6a76839c6fb9e8c4acddceb78a (patch)
treec0209ab79c37ded2b7bdfa21fc1bb35cedab1dee /include
parentb892430f0968ae7f80f0d6fe2883f1ad6c452a22 (diff)
Linker: Copy metadata when linking declarations.
Differential Revision: http://reviews.llvm.org/D21624 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/GlobalObject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/IR/GlobalObject.h b/include/llvm/IR/GlobalObject.h
index 8c494cf3bc9..6414ca5b147 100644
--- a/include/llvm/IR/GlobalObject.h
+++ b/include/llvm/IR/GlobalObject.h
@@ -114,6 +114,9 @@ public:
/// Erase all metadata attachments with the given kind.
void eraseMetadata(unsigned KindID);
+ /// Copy metadata from Src.
+ void copyMetadata(const GlobalObject *Src);
+
void copyAttributesFrom(const GlobalValue *Src) override;
// Methods for support type inquiry through isa, cast, and dyn_cast: