Move the iOSVersionMin string to a header so as to avoid a dangling pointer.

llvm-svn: 156497
This commit is contained in:
Chad Rosier 2012-05-09 18:37:26 +00:00
parent 5ce45fdfb1
commit 6037c6bae0
2 changed files with 4 additions and 1 deletions

View File

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

View File

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