Move the iOSVersionMin string to a header so as to avoid a dangling pointer.
llvm-svn: 156497
This commit is contained in:
parent
5ce45fdfb1
commit
6037c6bae0
|
@ -525,7 +525,6 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const {
|
|||
// go ahead as assume we're targeting iOS.
|
||||
if (OSXTarget.empty() && iOSTarget.empty())
|
||||
if (getDarwinArchName(Args) == "armv7") {
|
||||
std::string iOSVersionMin;
|
||||
unsigned Major, Minor, Micro;
|
||||
getTriple().getiOSVersion(Major, Minor, Micro);
|
||||
llvm::raw_string_ostream(iOSVersionMin)
|
||||
|
|
|
@ -205,6 +205,10 @@ private:
|
|||
/// initialized.
|
||||
std::string MacosxVersionMin;
|
||||
|
||||
/// The default ios-version-min of this tool chain; empty until
|
||||
/// initialized.
|
||||
std::string iOSVersionMin;
|
||||
|
||||
bool hasARCRuntime() const;
|
||||
bool hasSubscriptingRuntime() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue