summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Metadata.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-19 19:03:18 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-19 19:03:18 +0000
commit66ed52231fff82a7bf36991323b3f5124fad2892 (patch)
tree59d189a24fc1f3eb748dc65011360ce01c308e64 /llvm/lib/IR/Metadata.cpp
parent2711ca7c28da9134bda2308bb46ec34d189a0126 (diff)
downloadbcm5719-llvm-66ed52231fff82a7bf36991323b3f5124fad2892.tar.gz
bcm5719-llvm-66ed52231fff82a7bf36991323b3f5124fad2892.zip
IR: Unify code for MDNode::isResolved(), NFC
Unify the definitions of `MDNode::isResolved()` and `UniquableMDNode::isResolved()`. Previously, `UniquableMDNode` could answer this question more efficiently, but now that RAUW support has been unified with `MDNodeFwdDecl`, `MDNode` doesn't need any casts to figure out the answer. llvm-svn: 226485
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r--llvm/lib/IR/Metadata.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index 5b196388fc4..fe6ad34e162 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -407,12 +407,6 @@ MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage,
make_unique<ReplaceableMetadataImpl>(Context));
}
-bool MDNode::isResolved() const {
- if (isa<MDNodeFwdDecl>(this))
- return false;
- return cast<UniquableMDNode>(this)->isResolved();
-}
-
static bool isOperandUnresolved(Metadata *Op) {
if (auto *N = dyn_cast_or_null<MDNode>(Op))
return !N->isResolved();
OpenPOWER on IntegriCloud