[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcTargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 16 11:23:11 PDT 2006
Changes in directory llvm/lib/Target/Sparc:
SparcTargetMachine.cpp updated: 1.47 -> 1.48
---
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 -2)
SparcTargetMachine.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Target/Sparc/SparcTargetMachine.cpp
diff -u llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.47 llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.48
--- llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.47 Fri May 19 19:49:30 2006
+++ llvm/lib/Target/Sparc/SparcTargetMachine.cpp Fri Jun 16 13:22:52 2006
@@ -31,8 +31,7 @@
/// SparcTargetMachine ctor - Create an ILP32 architecture model
///
SparcTargetMachine::SparcTargetMachine(const Module &M, const std::string &FS)
- : TargetMachine("Sparc"),
- DataLayout(std::string("Sparc"), std::string("E-p:32:32")),
+ : TargetMachine("Sparc"), DataLayout("E-p:32:32"),
Subtarget(M, FS), InstrInfo(Subtarget),
FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0) {
}
More information about the llvm-commits
mailing list