Skip to content

Commit

Permalink
[Outline] Adding distinguishing name to outlined functions from Tapir…
Browse files Browse the repository at this point in the history
… lowering, per the suggestion in llvm#78.
  • Loading branch information
neboat committed Jun 12, 2022
1 parent 1717ac0 commit 506418a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Tapir/Outline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Function *llvm::CreateHelper(
// Create the new function
Function *NewFunc = Function::Create(
FTy, GlobalValue::InternalLinkage,
OldFunc->getName() + "_" + Header->getName() + NameSuffix, DestM);
OldFunc->getName() + ".outline_" + Header->getName() + NameSuffix, DestM);

// Set names for input and output arguments.
Function::arg_iterator DestI = NewFunc->arg_begin();
Expand Down

0 comments on commit 506418a

Please sign in to comment.