mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
IR: MDNode => Value: Instruction::getAllMetadataOtherThanDebugLoc()
Change `Instruction::getAllMetadataOtherThanDebugLoc()` from a vector of `MDNode` to one of `Value`. Part of PR21433. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1308,13 +1308,13 @@ bool llvm::removeUnreachableBlocks(Function &F) {
|
||||
}
|
||||
|
||||
void llvm::combineMetadata(Instruction *K, const Instruction *J, ArrayRef<unsigned> KnownIDs) {
|
||||
SmallVector<std::pair<unsigned, MDNode*>, 4> Metadata;
|
||||
SmallVector<std::pair<unsigned, Value *>, 4> Metadata;
|
||||
K->dropUnknownMetadata(KnownIDs);
|
||||
K->getAllMetadataOtherThanDebugLoc(Metadata);
|
||||
for (unsigned i = 0, n = Metadata.size(); i < n; ++i) {
|
||||
unsigned Kind = Metadata[i].first;
|
||||
MDNode *JMD = J->getMDNode(Kind);
|
||||
MDNode *KMD = Metadata[i].second;
|
||||
MDNode *KMD = cast<MDNode>(Metadata[i].second);
|
||||
|
||||
switch (Kind) {
|
||||
default:
|
||||
|
Reference in New Issue
Block a user