changeset 226:f48a93eada0e

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 19 Jul 2021 03:57:43 +0900
parents f7655407a6ba
children 21e6aa2e49ef
files llvm/lib/IR/AsmWriter.cpp
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/llvm/lib/IR/AsmWriter.cpp	Mon Jul 19 03:48:36 2021 +0900
+++ b/llvm/lib/IR/AsmWriter.cpp	Mon Jul 19 03:57:43 2021 +0900
@@ -108,15 +108,6 @@
   return V;
 }
 
-/// Look for a value that might be wrapped as metadata, e.g. a value in a
-/// metadata operand. Returns the input value as-is if it is not wrapped.
-static const Value *skipMetadataWrapper(const Value *V) {
-  if (const auto *MAV = dyn_cast<MetadataAsValue>(V))
-    if (const auto *VAM = dyn_cast<ValueAsMetadata>(MAV->getMetadata()))
-      return VAM->getValue();
-  return V;
-}
-
 static void orderValue(const Value *V, OrderMap &OM) {
   if (OM.lookup(V))
     return;