[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 16 11:23:11 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCTargetMachine.cpp updated: 1.92 -> 1.93
---
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)
PPCTargetMachine.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.92 llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.93
--- llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.92 Thu Jun 15 20:37:27 2006
+++ llvm/lib/Target/PowerPC/PPCTargetMachine.cpp Fri Jun 16 13:22:52 2006
@@ -87,8 +87,7 @@
PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
bool is64Bit)
: TargetMachine("PowerPC"), Subtarget(M, FS, is64Bit),
- DataLayout(std::string("PowerPC"),
- std::string(Subtarget.getTargetDataString())),
+ DataLayout(Subtarget.getTargetDataString()),
FrameInfo(*this, false), JITInfo(*this), TLInfo(*this),
InstrItins(Subtarget.getInstrItineraryData()) {
More information about the llvm-commits
mailing list