diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-06 01:26:00 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-06 01:26:00 +0000 |
commit | 09bf11693964ed6ea6b010c4843b577dd4fbb96b (patch) | |
tree | fc86072482a6675fd49c003c98526307673ef669 /llvm/lib/Transforms/Utils | |
parent | 4a406d32e97b1748c4eed6674a2c1819b9cf98ea (diff) | |
download | bcm5719-llvm-09bf11693964ed6ea6b010c4843b577dd4fbb96b.tar.gz bcm5719-llvm-09bf11693964ed6ea6b010c4843b577dd4fbb96b.zip |
Revert r208025, which made buildbots unhappy for unknown reasons.
llvm-svn: 208030
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r-- | llvm/lib/Transforms/Utils/CtorUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CtorUtils.cpp b/llvm/lib/Transforms/Utils/CtorUtils.cpp index 7cf793f6266..0082df01214 100644 --- a/llvm/lib/Transforms/Utils/CtorUtils.cpp +++ b/llvm/lib/Transforms/Utils/CtorUtils.cpp @@ -132,8 +132,8 @@ GlobalVariable *findGlobalCtors(Module &M) { /// Call "ShouldRemove" for every entry in M's global_ctor list and remove the /// entries for which it returns true. Return true if anything changed. -bool optimizeGlobalCtorsList(Module &M, - function_ref<bool(Function *)> ShouldRemove) { +bool optimizeGlobalCtorsList(Module &M, ShouldRemoveCtor ShouldRemove, + void *Context) { GlobalVariable *GlobalCtors = findGlobalCtors(M); if (!GlobalCtors) return false; @@ -163,7 +163,7 @@ bool optimizeGlobalCtorsList(Module &M, continue; // If we can evaluate the ctor at compile time, do. - if (ShouldRemove(F)) { + if (ShouldRemove(Context, F)) { Ctors.erase(Ctors.begin() + i); MadeChange = true; --i; |