diff options
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index cbba2ee90a1..c579b6bf1b1 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -959,19 +959,6 @@ void Function::setPrologueData(Constant *PrologueData) { setValueSubclassData(PDData); } -void llvm::overrideFunctionAttribute(StringRef Kind, StringRef Value, - Function &F) { - auto &Ctx = F.getContext(); - AttributeSet Attrs = F.getAttributes(), AttrsToRemove; - - AttrsToRemove = - AttrsToRemove.addAttribute(Ctx, AttributeSet::FunctionIndex, Kind); - Attrs = Attrs.removeAttributes(Ctx, AttributeSet::FunctionIndex, - AttrsToRemove); - Attrs = Attrs.addAttribute(Ctx, AttributeSet::FunctionIndex, Kind, Value); - F.setAttributes(Attrs); -} - void Function::setEntryCount(uint64_t Count) { MDBuilder MDB(getContext()); setMetadata(LLVMContext::MD_prof, MDB.createFunctionEntryCount(Count)); |