forked from OSchip/llvm-project
Return a StringRef in getDefaultUniversalArchName.
Patch by Stephen Drake. llvm-svn: 213964
This commit is contained in:
parent
78cfa0c72e
commit
42db11e1f2
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue