From 09bf11693964ed6ea6b010c4843b577dd4fbb96b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 6 May 2014 01:26:00 +0000 Subject: Revert r208025, which made buildbots unhappy for unknown reasons. llvm-svn: 208030 --- llvm/lib/Transforms/Utils/CtorUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Utils') 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 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; -- cgit v1.2.3