[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 24 08:54:01 PDT 2003
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.37 -> 1.38
---
Log message:
Add support for 'any' pointer size and endianness
---
Diffs of the changes:
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.37 llvm/lib/Target/TargetData.cpp:1.38
--- llvm/lib/Target/TargetData.cpp:1.37 Mon Aug 18 09:31:51 2003
+++ llvm/lib/Target/TargetData.cpp Sun Aug 24 08:49:22 2003
@@ -112,8 +112,8 @@
: AID(AnnotationManager::getID("TargetData::" + ToolName)) {
AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this);
- LittleEndian = M->isLittleEndian();
- PointerSize = M->has32BitPointers() ? 4 : 8;
+ LittleEndian = M->getEndianness() != Module::BigEndian;
+ PointerSize = M->getPointerSize() != Module::Pointer64 ? 4 : 8;
PointerAlignment = PointerSize;
DoubleAlignment = PointerSize;
FloatAlignment = 4;
More information about the llvm-commits
mailing list