summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-20 17:09:22 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-20 17:09:22 +0000
commit402b431051e7cda063f38324c191d38096082c64 (patch)
tree7936aa18199869fc0d8ccafeb3579134663f9dfb /clang/lib/CodeGen/CGCall.cpp
parentf75f4d65730cef5646ac7472354e71f7df528df7 (diff)
downloadbcm5719-llvm-402b431051e7cda063f38324c191d38096082c64.tar.gz
bcm5719-llvm-402b431051e7cda063f38324c191d38096082c64.zip
[CodeGen] Move Reciprocals option from TargetOptions to CodeGenOptions
Diffrential Revision: https://reviews.llvm.org/D40226 llvm-svn: 318662
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index cefd73be276..08f514f94d5 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1739,7 +1739,7 @@ void CodeGenModule::ConstructDefaultFnAttrList(StringRef Name, bool HasOptnone,
llvm::toStringRef(CodeGenOpts.CorrectlyRoundedDivSqrt));
// TODO: Reciprocal estimate codegen options should apply to instructions?
- std::vector<std::string> &Recips = getTarget().getTargetOpts().Reciprocals;
+ const std::vector<std::string> &Recips = CodeGenOpts.Reciprocals;
if (!Recips.empty())
FuncAttrs.addAttribute("reciprocal-estimates",
llvm::join(Recips, ","));
OpenPOWER on IntegriCloud