[PATCH] Use lowercase version of argv[0] when determining driver mode
Hans Wennborg
hans at chromium.org
Tue Aug 20 14:44:18 PDT 2013
Using fancy C++'ism instead of for loop.
Hi whunt,
http://llvm-reviews.chandlerc.com/D1450
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1450?vs=3608&id=3613#toc
Files:
tools/driver/driver.cpp
Index: tools/driver/driver.cpp
===================================================================
--- tools/driver/driver.cpp
+++ tools/driver/driver.cpp
@@ -226,6 +226,8 @@
{ "++", "--driver-mode=g++" },
};
std::string ProgName(llvm::sys::path::stem(ArgVector[0]));
+ std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(),
+ toLowercase);
StringRef ProgNameRef(ProgName);
StringRef Prefix;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1450.2.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130820/e1f7c4d3/attachment.bin>
More information about the cfe-commits
mailing list