aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/ToolChain.cpp
diff options
context:
space:
mode:
authorGabor Ballabas <gaborb@inf.u-szeged.hu>2015-06-04 17:56:32 +0000
committerGabor Ballabas <gaborb@inf.u-szeged.hu>2015-06-04 17:56:32 +0000
commit208826cc0f1621d4fba82ae267b9b0385d4dcf17 (patch)
tree4008c35101fa39878adb7943a4b07a4ce32d7137 /clang/lib/Driver/ToolChain.cpp
parente194400233d23819062ee1a2cf4b51a31a165770 (diff)
downloadllvm-208826cc0f1621d4fba82ae267b9b0385d4dcf17.zip
llvm-208826cc0f1621d4fba82ae267b9b0385d4dcf17.tar.gz
llvm-208826cc0f1621d4fba82ae267b9b0385d4dcf17.tar.bz2
Allow case-insensitive values for -mcpu for ARM
GCC allows case-insensitive values for -mcpu, -march and -mtune options. This patch implements the same behaviour for the -mcpu option. llvm-svn: 239059
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
-rw-r--r--clang/lib/Driver/ToolChain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index f7b7402..82eb854 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -303,7 +303,7 @@ std::string ToolChain::ComputeLLVMTriple(const ArgList &Args,
// Thumb2 is the default for V7 on Darwin.
//
// FIXME: Thumb should just be another -target-feaure, not in the triple.
- StringRef CPU = Triple.isOSBinFormatMachO()
+ std::string CPU = Triple.isOSBinFormatMachO()
? tools::arm::getARMCPUForMArch(Args, Triple)
: tools::arm::getARMTargetCPU(Args, Triple);
StringRef Suffix =