[llvm] 0c99784 - [AsmParser] Remove MDRef (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 26 08:29:51 PDT 2021


Author: Kazu Hirata
Date: 2021-07-26T08:29:33-07:00
New Revision: 0c9978473e53833211669920370e2909303f0b49

URL: https://github.com/llvm/llvm-project/commit/0c9978473e53833211669920370e2909303f0b49
DIFF: https://github.com/llvm/llvm-project/commit/0c9978473e53833211669920370e2909303f0b49.diff

LOG: [AsmParser] Remove MDRef (NFC)

The last use was removed on Jan 12, 2015 in commit
ab617d597708fcf3c4b829bf595e9d990ca66c07.

Added: 
    

Modified: 
    llvm/include/llvm/AsmParser/LLParser.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/AsmParser/LLParser.h b/llvm/include/llvm/AsmParser/LLParser.h
index fd9ffb58c0329..70db9218fa3d1 100644
--- a/llvm/include/llvm/AsmParser/LLParser.h
+++ b/llvm/include/llvm/AsmParser/LLParser.h
@@ -93,21 +93,6 @@ namespace llvm {
     ModuleSummaryIndex *Index;
     SlotMapping *Slots;
 
-    // Instruction metadata resolution.  Each instruction can have a list of
-    // MDRef info associated with them.
-    //
-    // The simpler approach of just creating temporary MDNodes and then calling
-    // RAUW on them when the definition is processed doesn't work because some
-    // instruction metadata kinds, such as dbg, get stored in the IR in an
-    // "optimized" format which doesn't participate in the normal value use
-    // lists. This means that RAUW doesn't work, even on temporary MDNodes
-    // which otherwise support RAUW. Instead, we defer resolving MDNode
-    // references until the definitions have been processed.
-    struct MDRef {
-      SMLoc Loc;
-      unsigned MDKind, MDSlot;
-    };
-
     SmallVector<Instruction*, 64> InstsWithTBAATag;
 
     // Type resolution handling data structures.  The location is set when we


        


More information about the llvm-commits mailing list