diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-03-19 17:36:04 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-19 17:36:04 +0000 |
| commit | 403c4680655de7ef3213ed47a2bf83614e4d9085 (patch) | |
| tree | d7503436442987e846852854c0c742fa8ffa5438 /clang/lib/Driver | |
| parent | 37061eef5d947818b511fc4bf161a70103d60c04 (diff) | |
| download | bcm5719-llvm-403c4680655de7ef3213ed47a2bf83614e4d9085.tar.gz bcm5719-llvm-403c4680655de7ef3213ed47a2bf83614e4d9085.zip | |
Driver/clang: -mattr strings were not comma separated.
- Apologies for commits w/o test cases; they are coming.
llvm-svn: 67310
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 70005906540..34538114a55 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -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; } |

