rearchitect the registration mechanism used by the command line option stuff.
authorChris Lattner <sabre@nondot.org>
Fri, 6 Apr 2007 21:06:55 +0000 (21:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Apr 2007 21:06:55 +0000 (21:06 +0000)
commit9878d6ae3a535e421f69e0c08e27b259ad1bdbdc
tree7b3c0449245f15e0eb329336c62e38ffe94816a8
parent4802d90ca8deabe490d7baa263609a514bc11c16
rearchitect the registration mechanism used by the command line option stuff.
This dramatically reduce the amount of memory allocated by the commandline stuff
at static init time, changing it to build local data structures when ParseCommandLineOptions
is called.  In a dummy empty program that links some llvm libraries, this reduces
the number of malloc'd bytes from 4864 to 3360 on entry to main.  Most of that
memory is now allocated by non-commandline related stuff.

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