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 Jan 1, 2020
1 parent 3e4881a commit f4ee2f9
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 f4ee2f9

Please sign in to comment.