Return a StringRef in getDefaultUniversalArchName.

Patch by Stephen Drake.

llvm-svn: 213964
This commit is contained in:
Rafael Espindola 2014-07-25 19:22:51 +00:00
parent 78cfa0c72e
commit 42db11e1f2
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -50,7 +50,7 @@ const SanitizerArgs& ToolChain::getSanitizerArgs() const {
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