[llvm-commits] CVS: llvm/tools/llvm-extract/llvm-extract.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 16 11:24:07 PDT 2006



Changes in directory llvm/tools/llvm-extract:

llvm-extract.cpp updated: 1.29 -> 1.30
---
Log message:

Don't pass target name into TargetData anymore, it is never used or needed.



---
Diffs of the changes:  (+1 -1)

 llvm-extract.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/tools/llvm-extract/llvm-extract.cpp
diff -u llvm/tools/llvm-extract/llvm-extract.cpp:1.29 llvm/tools/llvm-extract/llvm-extract.cpp:1.30
--- llvm/tools/llvm-extract/llvm-extract.cpp:1.29	Sun Apr 24 12:35:15 2005
+++ llvm/tools/llvm-extract/llvm-extract.cpp	Fri Jun 16 13:23:48 2006
@@ -66,7 +66,7 @@
     // In addition to deleting all other functions, we also want to spiff it
     // up a little bit.  Do this now.
     PassManager Passes;
-    Passes.add(new TargetData("extract", M.get())); // Use correct TargetData
+    Passes.add(new TargetData(M.get())); // Use correct TargetData
     // Either isolate the function or delete it from the Module
     Passes.add(createFunctionExtractionPass(F, DeleteFn));
     Passes.add(createGlobalDCEPass());             // Delete unreachable globals






More information about the llvm-commits mailing list