diff options
author | Philip Reames <listmail@philipreames.com> | 2018-11-12 02:34:54 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2018-11-12 02:34:54 +0000 |
commit | 8b48ceac801d5970f7ed9ea75236735c77dcb3b8 (patch) | |
tree | c26fa156f3cc4ac9d442961379475832a8355011 /llvm/lib/CodeGen/BuiltinGCs.cpp | |
parent | 1559021751fbb9dae9072f67bce70d4bcf00ad5b (diff) | |
download | bcm5719-llvm-8b48ceac801d5970f7ed9ea75236735c77dcb3b8.tar.gz bcm5719-llvm-8b48ceac801d5970f7ed9ea75236735c77dcb3b8.zip |
[GC] Remove unused configuration variable
The custom root mechanism didn't actually do anything. ShadowStackGC, the only one which used it, just removed the gcroots before they reached the normal lowering in SelectionDAG. As a result, the state flag had no value.
llvm-svn: 346632
Diffstat (limited to 'llvm/lib/CodeGen/BuiltinGCs.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BuiltinGCs.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/BuiltinGCs.cpp b/llvm/lib/CodeGen/BuiltinGCs.cpp index 1b1b683904b..5ee2055cff9 100644 --- a/llvm/lib/CodeGen/BuiltinGCs.cpp +++ b/llvm/lib/CodeGen/BuiltinGCs.cpp @@ -30,7 +30,6 @@ public: ErlangGC() { NeededSafePoints = 1 << GC::PostCall; UsesMetadata = true; - CustomRoots = false; } }; @@ -55,9 +54,7 @@ public: /// while introducing only minor runtime overhead. class ShadowStackGC : public GCStrategy { public: - ShadowStackGC() { - CustomRoots = true; - } + ShadowStackGC() {} }; /// A GCStrategy which serves as an example for the usage of a statepoint based @@ -74,7 +71,6 @@ public: // gc.root lowering code doesn't run. NeededSafePoints = 0; UsesMetadata = false; - CustomRoots = false; } Optional<bool> isGCManagedPointer(const Type *Ty) const override { @@ -107,7 +103,6 @@ public: // gc.root lowering code doesn't run. NeededSafePoints = 0; UsesMetadata = false; - CustomRoots = false; } Optional<bool> isGCManagedPointer(const Type *Ty) const override { |