summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Metadata.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-11-01 00:26:42 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-11-01 00:26:42 +0000
commit4abd1a08080a950c0a03e65fd3f0116bb1371773 (patch)
treed59aa6ec289fea8450eee6c72244b5543d011259 /llvm/lib/IR/Metadata.cpp
parente3da05ac323e0ac91a0cdd2d73d0908d0d17412d (diff)
downloadbcm5719-llvm-4abd1a08080a950c0a03e65fd3f0116bb1371773.tar.gz
bcm5719-llvm-4abd1a08080a950c0a03e65fd3f0116bb1371773.zip
IR: MDNode => Value: Instruction::getAllMetadata()
Change `Instruction::getAllMetadata()` to modify a vector of `Value` instead of `MDNode` and update call sites. This is part of PR21433. llvm-svn: 221027
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r--llvm/lib/IR/Metadata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index 6c335c78729..ba86e9e6085 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -745,8 +745,8 @@ Value *Instruction::getMetadataImpl(unsigned KindID) const {
return nullptr;
}
-void Instruction::getAllMetadataImpl(SmallVectorImpl<std::pair<unsigned,
- MDNode*> > &Result) const {
+void Instruction::getAllMetadataImpl(
+ SmallVectorImpl<std::pair<unsigned, Value *>> &Result) const {
Result.clear();
// Handle 'dbg' as a special case since it is not stored in the hash table.
OpenPOWER on IntegriCloud