diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-03-29 18:24:19 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-03-29 18:24:19 +0000 |
commit | b703c77b033c48944aee437934cf15405fc113a8 (patch) | |
tree | 70f90f3086c20b538481310c54435c0e5b022583 /llvm/lib/IR/Metadata.cpp | |
parent | fee32cd9e29ad9437db49533e2f8b28ee9808c4a (diff) | |
download | bcm5719-llvm-b703c77b033c48944aee437934cf15405fc113a8.tar.gz bcm5719-llvm-b703c77b033c48944aee437934cf15405fc113a8.zip |
[ThinLTO] Remove post-pass metadata linking support
Since we have moved to a model where functions are imported in bulk from
each source module after making summary-based importing decisions, there
is no longer a need to link metadata as a postpass, and all users have
been removed.
This essentially reverts r255909 and follow-on fixes.
llvm-svn: 264763
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r-- | llvm/lib/IR/Metadata.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp index bcbda13f918..b874308afa3 100644 --- a/llvm/lib/IR/Metadata.cpp +++ b/llvm/lib/IR/Metadata.cpp @@ -188,9 +188,6 @@ void ReplaceableMetadataImpl::moveRef(void *Ref, void *New, } void ReplaceableMetadataImpl::replaceAllUsesWith(Metadata *MD) { - assert(CanReplace && - "Attempted to replace Metadata marked for no replacement"); - if (UseMap.empty()) return; @@ -550,7 +547,7 @@ void MDNode::decrementUnresolvedOperandCount() { resolve(); } -void MDNode::resolveRecursivelyImpl(bool AllowTemps) { +void MDNode::resolveCycles() { if (isResolved()) return; @@ -563,8 +560,6 @@ void MDNode::resolveRecursivelyImpl(bool AllowTemps) { if (!N) continue; - if (N->isTemporary() && AllowTemps) - continue; assert(!N->isTemporary() && "Expected all forward declarations to be resolved"); if (!N->isResolved()) |