summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-07-18 20:41:02 +0000
committerErich Keane <erich.keane@intel.com>2017-07-18 20:41:02 +0000
commitb0d4423bff26577ca389c420296882f4fa83e876 (patch)
tree9a922dbd2f0da6ed8a3c16cbe6da9c9d5fd8735e /clang/lib/CodeGen/CGCall.cpp
parent9f866a7896a47ca4c093a8ba538fb52985f87e0a (diff)
downloadbcm5719-llvm-b0d4423bff26577ca389c420296882f4fa83e876.tar.gz
bcm5719-llvm-b0d4423bff26577ca389c420296882f4fa83e876.zip
Convert attribute 'target' parsing from a 'pair' to a 'struct' to make further improvements easier
Convert attribute 'target' parsing from a 'pair' to a 'struct' to make further improvements easier The attribute 'target' parse function previously returned a pair. Convert this to a 'pair' in order to add more functionality, and improve usability. Differential Revision: https://reviews.llvm.org/D35574 llvm-svn: 308357
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index d30ad692b26..316bf44cb1c 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1877,8 +1877,8 @@ void CodeGenModule::ConstructAttributeList(
// the function.
const auto *TD = FD->getAttr<TargetAttr>();
TargetAttr::ParsedTargetAttr ParsedAttr = TD->parse();
- if (ParsedAttr.second != "")
- TargetCPU = ParsedAttr.second;
+ if (ParsedAttr.Architecture != "")
+ TargetCPU = ParsedAttr.Architecture;
if (TargetCPU != "")
FuncAttrs.addAttribute("target-cpu", TargetCPU);
if (!Features.empty()) {
OpenPOWER on IntegriCloud