[gcroot] Remove unused items from an enum
authorPhilip Reames <listmail@philipreames.com>
Thu, 2 Apr 2015 05:02:16 +0000 (05:02 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 2 Apr 2015 05:02:16 +0000 (05:02 +0000)
These two were never implemented for gcroot, so there's no point in keeping them around now.

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

include/llvm/CodeGen/GCStrategy.h
lib/CodeGen/GCMetadata.cpp

index 869f8888d010785b0ed30d5c6dc97387b57b232d..a1b8e895898fe5394ec38c7ee43582d677f239eb 100644 (file)
 
 namespace llvm {
 namespace GC {
-/// PointKind - The type of a collector-safe point.
+/// PointKind - Used to indicate whether the address of the call instruction
+/// or the address after the call instruction is listed in the stackmap.  For
+/// most runtimes, PostCall safepoints are appropriate.
 ///
 enum PointKind {
-  Loop,    ///< Instr is a loop (backwards branch).
-  Return,  ///< Instr is a return instruction.
   PreCall, ///< Instr is a call instruction.
   PostCall ///< Instr is the return address of a call.
 };
index a2c5fce20131b1c7fa7c5b2021e7d64908447267..16cd9e83b4af6a231e8c39eee4d9a15ddfe47845 100644 (file)
@@ -99,10 +99,6 @@ void Printer::getAnalysisUsage(AnalysisUsage &AU) const {
 
 static const char *DescKind(GC::PointKind Kind) {
   switch (Kind) {
-  case GC::Loop:
-    return "loop";
-  case GC::Return:
-    return "return";
   case GC::PreCall:
     return "pre-call";
   case GC::PostCall: