[llvm] r233892 - [gcroot] Remove unused items from an enum

Philip Reames listmail at philipreames.com
Wed Apr 1 22:02:16 PDT 2015


Author: reames
Date: Thu Apr  2 00:02:16 2015
New Revision: 233892

URL: http://llvm.org/viewvc/llvm-project?rev=233892&view=rev
Log:
[gcroot] Remove unused items from an enum

These two were never implemented for gcroot, so there's no point in keeping them around now.


Modified:
    llvm/trunk/include/llvm/CodeGen/GCStrategy.h
    llvm/trunk/lib/CodeGen/GCMetadata.cpp

Modified: llvm/trunk/include/llvm/CodeGen/GCStrategy.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GCStrategy.h?rev=233892&r1=233891&r2=233892&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GCStrategy.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GCStrategy.h Thu Apr  2 00:02:16 2015
@@ -60,11 +60,11 @@
 
 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.
 };

Modified: llvm/trunk/lib/CodeGen/GCMetadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GCMetadata.cpp?rev=233892&r1=233891&r2=233892&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GCMetadata.cpp (original)
+++ llvm/trunk/lib/CodeGen/GCMetadata.cpp Thu Apr  2 00:02:16 2015
@@ -99,10 +99,6 @@ void Printer::getAnalysisUsage(AnalysisU
 
 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:





More information about the llvm-commits mailing list