summaryrefslogtreecommitdiff
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-25 16:44:08 +0000
committerChris Lattner <sabre@nondot.org>2008-06-25 16:44:08 +0000
commit8e336eb04d399fafd7ffeae36b015f8084557a23 (patch)
treef42742f326c55d1e2f046bb5827f3636c06dda91 /tools/llvm-ld
parent44030ce66ed8ec6e3edfacbcca67292cd76c5c7c (diff)
downloadllvm-8e336eb04d399fafd7ffeae36b015f8084557a23.tar.gz
llvm-8e336eb04d399fafd7ffeae36b015f8084557a23.tar.bz2
llvm-8e336eb04d399fafd7ffeae36b015f8084557a23.tar.xz
remove some dead options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/Optimize.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp
index cbdf2f7499..0dc3857017 100644
--- a/tools/llvm-ld/Optimize.cpp
+++ b/tools/llvm-ld/Optimize.cpp
@@ -35,35 +35,6 @@ static cl::list<const PassInfo*, bool, PassNameParser>
//Don't verify at the end
static cl::opt<bool> DontVerify("disable-verify", cl::ReallyHidden);
-// Optimization Enumeration
-enum OptimizationLevels {
- OPT_FAST_COMPILE = 1,
- OPT_SIMPLE = 2,
- OPT_AGGRESSIVE = 3,
- OPT_LINK_TIME = 4,
- OPT_AGGRESSIVE_LINK_TIME = 5
-};
-
-// Optimization Options
-static cl::opt<OptimizationLevels> OptLevel(
- cl::desc("Choose level of optimization to apply:"),
- cl::init(OPT_FAST_COMPILE), cl::values(
- clEnumValN(OPT_FAST_COMPILE,"O0",
- "An alias for the -O1 option."),
- clEnumValN(OPT_FAST_COMPILE,"O1",
- "Optimize for linking speed, not execution speed."),
- clEnumValN(OPT_SIMPLE,"O2",
- "Perform only required/minimal optimizations"),
- clEnumValN(OPT_AGGRESSIVE,"O3",
- "An alias for the -O2 option."),
- clEnumValN(OPT_LINK_TIME,"O4",
- "Perform standard link time optimizations"),
- clEnumValN(OPT_AGGRESSIVE_LINK_TIME,"O5",
- "Perform aggressive link time optimizations"),
- clEnumValEnd
- )
-);
-
static cl::opt<bool> DisableInline("disable-inlining",
cl::desc("Do not run the inliner pass"));