[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp

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



Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.57 -> 1.58
---
Log message:

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



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

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


Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.57 llvm/tools/gccld/GenerateCode.cpp:1.58
--- llvm/tools/gccld/GenerateCode.cpp:1.57	Sun May 14 14:17:28 2006
+++ llvm/tools/gccld/GenerateCode.cpp	Fri Jun 16 13:23:48 2006
@@ -207,7 +207,7 @@
   if (Verify) Passes.add(createVerifierPass());
 
   // Add an appropriate TargetData instance for this module...
-  addPass(Passes, new TargetData("gccld", M));
+  addPass(Passes, new TargetData(M));
 
   // Often if the programmer does not specify proper prototypes for the
   // functions they are calling, they end up calling a vararg version of the






More information about the llvm-commits mailing list