================
Comment at: tools/driver/driver.cpp:258
@@ +257,3 @@
+ if (!DS) {
+ // Try again after stripping trailing -component.
+ ProgNameRef = ProgNameRef.slice(0, ProgNameRef.rfind('-'));
----------------
Might help if these comments were maybe illustrated with an example:
// Strip trailing version: clang-3.4 -> clang
// Strip trailing -component: clang-foo -> clang
http://reviews.llvm.org/D5833
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits