summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PassNameParser.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-06 21:06:55 +0000
committerChris Lattner <sabre@nondot.org>2007-04-06 21:06:55 +0000
commit9878d6ae3a535e421f69e0c08e27b259ad1bdbdc (patch)
tree7b3c0449245f15e0eb329336c62e38ffe94816a8 /include/llvm/Support/PassNameParser.h
parent4802d90ca8deabe490d7baa263609a514bc11c16 (diff)
downloadllvm-9878d6ae3a535e421f69e0c08e27b259ad1bdbdc.tar.gz
llvm-9878d6ae3a535e421f69e0c08e27b259ad1bdbdc.tar.bz2
llvm-9878d6ae3a535e421f69e0c08e27b259ad1bdbdc.tar.xz
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
Diffstat (limited to 'include/llvm/Support/PassNameParser.h')
-rw-r--r--include/llvm/Support/PassNameParser.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h
index 83653aa745..e87e16a21b 100644
--- a/include/llvm/Support/PassNameParser.h
+++ b/include/llvm/Support/PassNameParser.h
@@ -70,7 +70,6 @@ public:
abort();
}
addLiteralOption(P->getPassArgument(), P, P->getPassName());
- Opt->addArgument(P->getPassArgument());
}
virtual void passEnumerate(const PassInfo *P) { passRegistered(P); }