diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-05-23 01:12:26 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-05-23 01:12:26 +0000 |
commit | bd881834c5eeb75f1e5cd8a0d56c25dfe122daa5 (patch) | |
tree | d137183a4ce14e9fbdc74e7d7da83c584b92709a /llvm/lib/IR/Function.cpp | |
parent | 20e9bcbfc8817eb9a4c2433830a571430b7321e8 (diff) | |
download | bcm5719-llvm-bd881834c5eeb75f1e5cd8a0d56c25dfe122daa5.tar.gz bcm5719-llvm-bd881834c5eeb75f1e5cd8a0d56c25dfe122daa5.zip |
Simplify and rename function overrideFunctionAttributes. NFC.
This is in preparation to making changes needed to stop resetting
NoFramePointerElim in resetTargetOptions.
llvm-svn: 238079
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)); |