]> granicus.if.org Git - clang/commit
Driver: Make argument parsing fast.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 23 Mar 2009 21:50:40 +0000 (21:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 23 Mar 2009 21:50:40 +0000 (21:50 +0000)
commit7547f74b52aa51f9a55105bd95cd25bcfa428e5b
tree59ec46bc774fc40d3afec93127c42a0a95ec9b5e
parentafcf80f3405690dcf4730dae24e3775bc64bcd78
Driver: Make argument parsing fast.

On a synthetic command line consisting of almost all defined options,
this drops wall time from .00494 to .00336 and user time from .00258
to .00105.

On the same benchmark, clang-driver is about 15% faster than the
primary gcc driver and almost twice as fast as the gcc driver driver.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67564 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/OptTable.cpp