OSDN Git Service

convert a bunch more stuff to use StringRef. The ArgName arguments are now
authorChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 00:40:49 +0000 (00:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 20 Sep 2009 00:40:49 +0000 (00:40 +0000)
commit99c5c7b7df4fe44d54cd680e7878c44789e6e057
tree201acbb1affd562a1f4e77913e88f926e487b235
parentdb513bc0963fbf372f898f8b94fc13994663c0c6
convert a bunch more stuff to use StringRef.  The ArgName arguments are now
stringref because they may not be nul terminated.  For options like -Lfoo
this now avoids a O(n)  temporary std::strings where N is the length of
the string after -L.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82345 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp