aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2012-10-26 09:15:55 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2012-10-26 09:15:55 +0000
commit0bd10f2af37e694f08f41199f4c6792c494430d9 (patch)
tree9daba7d194d3f24d4ea9ad30136cca8056b828bf /include
parent8b1b4136a0cce28ab2740473be215d22e3b005a9 (diff)
downloadexternal_llvm-0bd10f2af37e694f08f41199f4c6792c494430d9.zip
external_llvm-0bd10f2af37e694f08f41199f4c6792c494430d9.tar.gz
external_llvm-0bd10f2af37e694f08f41199f4c6792c494430d9.tar.bz2
Remove GC roots that reference dead objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 20e33f7..076f6f3 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).