OptionValueFileSpec shouldn't be doing argument

parsing on the file name it gets.  That confuses
it if there are spaces in the file name.

<rdar://problem/13380392>

llvm-svn: 176719
This commit is contained in:
Sean Callanan
2013-03-08 20:59:47 +00:00
parent 24ccabfdc3
commit 8773ce2fec

View File

@@ -94,17 +94,8 @@ OptionValueFileSpec::SetValueFromCString (const char *value_cstr,
case eVarSetOperationAssign:
if (value_cstr && value_cstr[0])
{
Args args(value_cstr);
if (args.GetArgumentCount() == 1)
{
const char *path = args.GetArgumentAtIndex(0);
m_value_was_set = true;
m_current_value.SetFile(path, true);
}
else
{
error.SetErrorString("please supply a single path argument for this file or quote the path if it contains spaces");
}
m_value_was_set = true;
m_current_value.SetFile(value_cstr, true);
}
else
{