Look at lowercase version of argv[0] when determining driver mode

llvm-svn: 188833
This commit is contained in:
Hans Wennborg 2013-08-20 21:47:50 +00:00
parent e1f3ab69d1
commit bcbc89cf0b
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
{ "++", "--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;