1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00

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:
Chris Lattner 2003-09-01 16:53:46 +00:00
parent 3bef1d6ae4
commit b70da7293b

View File

@ -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,