diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-01-23 00:36:05 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-01-23 00:36:05 +0000 |
| commit | af044cc84b47a4b1f6c4e8d5b585d62258c9e52d (patch) | |
| tree | ed43550a7eee2a35f92df5d0c532c41e2247fcf9 | |
| parent | 8d8a19fa58267dad084e423c9b11eb550094995d (diff) | |
| download | bcm5719-llvm-af044cc84b47a4b1f6c4e8d5b585d62258c9e52d.tar.gz bcm5719-llvm-af044cc84b47a4b1f6c4e8d5b585d62258c9e52d.zip | |
It doesn't make sense to give llc a list of passes on the command line,
LLVM doesn't use it and it can't work anyway.
llvm-svn: 25519
| -rw-r--r-- | llvm/tools/llc/llc.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index 892092591ec..e63260a3495 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -79,11 +79,6 @@ FileType("filetype", cl::init(TargetMachine::AssemblyFile), " Emit a native dynamic library ('.so') file"), clEnumValEnd)); -// The LLCPassList is populated with passes that were registered using -// PassInfo::LLC by the FilteredPassNameParser: -cl::list<const PassInfo*, bool, FilteredPassNameParser<PassInfo::LLC> > -LLCPassList(cl::desc("Passes Available")); - cl::opt<bool> NoVerify("disable-verify", cl::Hidden, cl::desc("Do not verify input module")); @@ -157,19 +152,6 @@ int main(int argc, char **argv) { PassManager Passes; Passes.add(new TargetData(TD)); - // Create a new pass for each one specified on the command line - for (unsigned i = 0; i < LLCPassList.size(); ++i) { - const PassInfo *aPass = LLCPassList[i]; - - if (aPass->getNormalCtor()) { - Pass *P = aPass->getNormalCtor()(); - Passes.add(P); - } else { - std::cerr << argv[0] << ": cannot create pass: " - << aPass->getPassName() << "\n"; - } - } - #ifndef NDEBUG if(!NoVerify) Passes.add(createVerifierPass()); |

