summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/GCMetadata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/GCMetadata.h')
-rw-r--r--include/llvm/CodeGen/GCMetadata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/GCMetadata.h b/include/llvm/CodeGen/GCMetadata.h
index 20e33f74f6..076f6f39fe 100644
--- a/include/llvm/CodeGen/GCMetadata.h
+++ b/include/llvm/CodeGen/GCMetadata.h
@@ -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).