r213964 - Return a StringRef in getDefaultUniversalArchName.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 25 12:22:51 PDT 2014
Author: rafael
Date: Fri Jul 25 14:22:51 2014
New Revision: 213964
URL: http://llvm.org/viewvc/llvm-project?rev=213964&view=rev
Log:
Return a StringRef in getDefaultUniversalArchName.
Patch by Stephen Drake.
Modified:
cfe/trunk/include/clang/Driver/ToolChain.h
cfe/trunk/lib/Driver/ToolChain.cpp
Modified: cfe/trunk/include/clang/Driver/ToolChain.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ToolChain.h?rev=213964&r1=213963&r2=213964&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/ToolChain.h (original)
+++ cfe/trunk/include/clang/Driver/ToolChain.h Fri Jul 25 14:22:51 2014
@@ -121,7 +121,7 @@ public:
/// \brief Provide the default architecture name (as expected by -arch) for
/// this toolchain. Note t
- std::string getDefaultUniversalArchName() const;
+ StringRef getDefaultUniversalArchName() const;
std::string getTripleString() const {
return Triple.getTriple();
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=213964&r1=213963&r2=213964&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Fri Jul 25 14:22:51 2014
@@ -50,7 +50,7 @@ const SanitizerArgs& ToolChain::getSanit
return *SanitizerArguments.get();
}
-std::string ToolChain::getDefaultUniversalArchName() const {
+StringRef ToolChain::getDefaultUniversalArchName() const {
// In universal driver terms, the arch name accepted by -arch isn't exactly
// the same as the ones that appear in the triple. Roughly speaking, this is
// an inverse of the darwin::getArchTypeForDarwinArchName() function, but the
More information about the cfe-commits
mailing list