diff options
Diffstat (limited to 'tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 8e392613c9..22bd173895 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// // -// This file implements a method that extracts a function from program, cleans -// it up, and returns it as a new module. +// This file implements several methods that are used to extract functions, +// loops, or portions of a module from the rest of the module. // //===----------------------------------------------------------------------===// @@ -76,6 +76,8 @@ Module *BugDriver::deleteInstructionFromProgram(const Instruction *I, // Make sure that the appropriate target data is always used... Passes.add(new TargetData("bugpoint", Result)); + /// FIXME: If this used runPasses() like the methods below, we could get rid + /// of the -disable-* options! if (Simplification > 1 && !NoDCE) Passes.add(createDeadCodeEliminationPass()); if (Simplification && !DisableSimplifyCFG) |