[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 23 10:44:03 PDT 2003
Changes in directory llvm/tools/bugpoint:
ExtractFunction.cpp updated: 1.16 -> 1.17
---
Log message:
Fix an assertion failure in Bugpoint
---
Diffs of the changes: (+6 -0)
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.16 llvm/tools/bugpoint/ExtractFunction.cpp:1.17
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.16 Mon Oct 20 12:57:13 2003
+++ llvm/tools/bugpoint/ExtractFunction.cpp Thu Oct 23 10:42:55 2003
@@ -22,6 +22,7 @@
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Cloning.h"
+#include "llvm/Target/TargetData.h"
#include "Support/CommandLine.h"
bool DisableSimplifyCFG = false;
@@ -72,6 +73,9 @@
// Spiff up the output a little bit.
PassManager Passes;
+ // Make sure that the appropriate target data is always used...
+ Passes.add(new TargetData("bugpoint", Result));
+
if (Simplification > 2 && !NoADCE)
Passes.add(createAggressiveDCEPass()); // Remove dead code...
//Passes.add(createInstructionCombiningPass());
@@ -104,6 +108,8 @@
I->setLinkage(GlobalValue::ExternalLinkage);
PassManager CleanupPasses;
+ // Make sure that the appropriate target data is always used...
+ CleanupPasses.add(new TargetData("bugpoint", M));
CleanupPasses.add(createFunctionResolvingPass());
CleanupPasses.add(createGlobalDCEPass());
CleanupPasses.add(createDeadTypeEliminationPass());
More information about the llvm-commits
mailing list