forked from OSchip/llvm-project
Not only is this a lot smaller, it actually works if there is already a
function with the right name in the module. llvm-svn: 8290
This commit is contained in:
parent
5b8addab9b
commit
267f20475b
|
@ -158,11 +158,7 @@ public:
|
|||
Cilkifier::Cilkifier(Module& M)
|
||||
{
|
||||
// create the dummy Sync function and add it to the Module
|
||||
DummySyncFunc = new Function(FunctionType::get( Type::VoidTy,
|
||||
std::vector<const Type*>(),
|
||||
/*isVararg*/ false),
|
||||
GlobalValue::ExternalLinkage, DummySyncFuncName,
|
||||
&M);
|
||||
DummySyncFunc = M.getOrInsertFunction(DummySyncFuncName, Type::VoidTy, 0);
|
||||
}
|
||||
|
||||
void Cilkifier::TransformFunc(Function* F,
|
||||
|
|
Loading…
Reference in New Issue