mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Not only is this a lot smaller, it actually works if there is already a
function with the right name in the module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0201eaca8
commit
273328e8e0
@ -158,11 +158,7 @@ public:
|
|||||||
Cilkifier::Cilkifier(Module& M)
|
Cilkifier::Cilkifier(Module& M)
|
||||||
{
|
{
|
||||||
// create the dummy Sync function and add it to the Module
|
// create the dummy Sync function and add it to the Module
|
||||||
DummySyncFunc = new Function(FunctionType::get( Type::VoidTy,
|
DummySyncFunc = M.getOrInsertFunction(DummySyncFuncName, Type::VoidTy, 0);
|
||||||
std::vector<const Type*>(),
|
|
||||||
/*isVararg*/ false),
|
|
||||||
GlobalValue::ExternalLinkage, DummySyncFuncName,
|
|
||||||
&M);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cilkifier::TransformFunc(Function* F,
|
void Cilkifier::TransformFunc(Function* F,
|
||||||
|
@ -158,11 +158,7 @@ public:
|
|||||||
Cilkifier::Cilkifier(Module& M)
|
Cilkifier::Cilkifier(Module& M)
|
||||||
{
|
{
|
||||||
// create the dummy Sync function and add it to the Module
|
// create the dummy Sync function and add it to the Module
|
||||||
DummySyncFunc = new Function(FunctionType::get( Type::VoidTy,
|
DummySyncFunc = M.getOrInsertFunction(DummySyncFuncName, Type::VoidTy, 0);
|
||||||
std::vector<const Type*>(),
|
|
||||||
/*isVararg*/ false),
|
|
||||||
GlobalValue::ExternalLinkage, DummySyncFuncName,
|
|
||||||
&M);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cilkifier::TransformFunc(Function* F,
|
void Cilkifier::TransformFunc(Function* F,
|
||||||
|
Loading…
Reference in New Issue
Block a user