Remove GC roots that reference dead objects.
[oota-llvm.git] / include / llvm / CodeGen / GCMetadata.h
index 20e33f74f650d8db84c23204b8a377344d8537aa..076f6f39fe2c51715ad1e41a0fad8009fb8462e9 100644 (file)
@@ -122,6 +122,11 @@ namespace llvm {
       Roots.push_back(GCRoot(Num, Metadata));
     }
 
+    /// removeStackRoot - Removes a root.
+    roots_iterator removeStackRoot(roots_iterator position) {
+      return Roots.erase(position);
+    }
+
     /// addSafePoint - Notes the existence of a safe point. Num is the ID of the
     /// label just prior to the safe point (if the code generator is using
     /// MachineModuleInfo).