aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-14 19:31:00 +0000
committerChris Lattner <sabre@nondot.org>2004-03-14 19:31:00 +0000
commit5eda1f2f65941a24ef9a5a85addf4d90eb13fa9d (patch)
tree9a5997cd2c60c3686a5f6d6ccc6d6a98be1d8433 /tools/bugpoint
parentbe21ca54e08339ede5dd4bbb882182d22e274988 (diff)
downloadexternal_llvm-5eda1f2f65941a24ef9a5a85addf4d90eb13fa9d.zip
external_llvm-5eda1f2f65941a24ef9a5a85addf4d90eb13fa9d.tar.gz
external_llvm-5eda1f2f65941a24ef9a5a85addf4d90eb13fa9d.tar.bz2
add a fixme
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index 29ad23c..41b5641 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -144,6 +144,11 @@ void llvm::DeleteFunctionBody(Function *F) {
/// SplitFunctionsOutOfModule - Given a module and a list of functions in the
/// module, split the functions OUT of the specified module, and place them in
/// the new module.
+///
+/// FIXME: this could be made DRAMATICALLY more efficient for large programs if
+/// we just MOVED functions from one module to the other, instead of cloning the
+/// whole module, then proceeding to delete an entire module's worth of stuff.
+///
Module *llvm::SplitFunctionsOutOfModule(Module *M,
const std::vector<Function*> &F) {
// Make sure functions & globals are all external so that linkage