]> granicus.if.org Git - llvm/commitdiff
[Metadata][NFC] Make MDNode::resolve() public in preparation for the fix to PR33930.
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>
Tue, 31 Oct 2017 18:25:28 +0000 (18:25 +0000)
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>
Tue, 31 Oct 2017 18:25:28 +0000 (18:25 +0000)
Reviewers: aprantl

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317018 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Metadata.h

index dc78598859746de4f5c5c87b54a07b8e8cad9d61..bc0b87a6c3480a7e1fe9f5038b99c6447fd107c1 100644 (file)
@@ -958,6 +958,9 @@ public:
   /// \pre No operands (or operands' operands, etc.) have \a isTemporary().
   void resolveCycles();
 
+  /// Resolve a unique, unresolved node.
+  void resolve();
+
   /// \brief Replace a temporary node with a permanent one.
   ///
   /// Try to create a uniqued version of \c N -- in place, if possible -- and
@@ -1009,9 +1012,6 @@ protected:
 private:
   void handleChangedOperand(void *Ref, Metadata *New);
 
-  /// Resolve a unique, unresolved node.
-  void resolve();
-
   /// Drop RAUW support, if any.
   void dropReplaceableUses();