[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp

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



Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.116 -> 1.117
---
Log message:

Don't pass target name into TargetData anymore, it is never used or needed.
Remove explicit casts to std::string now that there is no overload resolution
issues in the TargetData ctors.


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

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


Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.116 llvm/lib/Target/X86/X86TargetMachine.cpp:1.117
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.116	Tue May 30 16:45:53 2006
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Fri Jun 16 13:22:52 2006
@@ -70,7 +70,7 @@
 X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS)
   : TargetMachine("X86"),
     Subtarget(M, FS),
-    DataLayout(std::string("X86"), std::string("e-p:32:32-d:32-l:32")),
+    DataLayout("e-p:32:32-d:32-l:32"),
     FrameInfo(TargetFrameInfo::StackGrowsDown,
               Subtarget.getStackAlignment(), -4),
     InstrInfo(*this), JITInfo(*this), TLInfo(*this) {






More information about the llvm-commits mailing list