summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-05-26 20:17:20 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-05-26 20:17:20 +0000
commite36505c7f5a034e591679f7dea7384ba78733356 (patch)
treeef1a7312de3147d432e21c7ef4027d1e47582d61 /llvm/lib/CodeGen
parent6f8c1b6be6487d1c0330fa5609763196f43a2a9b (diff)
downloadbcm5719-llvm-e36505c7f5a034e591679f7dea7384ba78733356.tar.gz
bcm5719-llvm-e36505c7f5a034e591679f7dea7384ba78733356.zip
Remove NoFramePointerElim and NoFramePointerElimOverride from TargetOptions and
remove ExecutionEngine's dependence on CodeGen. NFC. This is a follow-up to r238080. Differential Revision: http://reviews.llvm.org/D9830 llvm-svn: 238244
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TargetOptionsImpl.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
index 9d1c27ef51e..f4926cbc624 100644
--- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp
+++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
@@ -54,30 +54,3 @@ bool TargetOptions::HonorSignDependentRoundingFPMath() const {
StringRef TargetOptions::getTrapFunctionName() const {
return TrapFuncName;
}
-
-
-void llvm::setFunctionAttributes(StringRef CPU, StringRef Features,
- const TargetOptions &Options, Module &M,
- bool AlwaysRecordAttrs) {
- for (auto &F : M) {
- auto &Ctx = F.getContext();
- AttributeSet Attrs = F.getAttributes(), NewAttrs;
-
- if (!CPU.empty())
- NewAttrs = NewAttrs.addAttribute(Ctx, AttributeSet::FunctionIndex,
- "target-cpu", CPU);
-
- if (!Features.empty())
- NewAttrs = NewAttrs.addAttribute(Ctx, AttributeSet::FunctionIndex,
- "target-features", Features);
-
- if (Options.NoFramePointerElimOverride || AlwaysRecordAttrs)
- NewAttrs = NewAttrs.addAttribute(
- Ctx, AttributeSet::FunctionIndex, "no-frame-pointer-elim",
- Options.NoFramePointerElim ? "true" : "false");
-
- // Let NewAttrs override Attrs.
- NewAttrs = Attrs.addAttributes(Ctx, AttributeSet::FunctionIndex, NewAttrs);
- F.setAttributes(NewAttrs);
- }
-}
OpenPOWER on IntegriCloud