Driver/clang: -mattr strings were not comma separated.

- Apologies for commits w/o test cases; they are coming.

llvm-svn: 67310
This commit is contained in:
Daniel Dunbar 2009-03-19 17:36:04 +00:00
parent 37061eef5d
commit 403c468065
1 changed files with 4 additions and 0 deletions

View File

@ -197,9 +197,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
std::string Attrs;
for (unsigned i=0; i < NumFeatureOptions; ++i) {
if (Args.hasArg(FeatureOptions[i].Pos)) {
if (!Attrs.empty())
Attrs += ',';
Attrs += '+';
Attrs += FeatureOptions[i].Name;
} else if (Args.hasArg(FeatureOptions[i].Neg)) {
if (!Attrs.empty())
Attrs += ',';
Attrs += '-';
Attrs += FeatureOptions[i].Name;
}