[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h
Devang Patel
dpatel at apple.com
Tue Oct 24 13:32:38 PDT 2006
Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.40 -> 1.41
---
Log message:
Move getPreferredAlignmentLog from AsmPrinter to TargetData
---
Diffs of the changes: (+6 -0)
TargetData.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.40 llvm/include/llvm/Target/TargetData.h:1.41
--- llvm/include/llvm/Target/TargetData.h:1.40 Fri Jun 16 13:21:53 2006
+++ llvm/include/llvm/Target/TargetData.h Tue Oct 24 15:32:14 2006
@@ -31,6 +31,7 @@
class Type;
class StructType;
class StructLayout;
+class GlobalVariable;
class TargetData : public ImmutablePass {
bool LittleEndian; // Defaults to false
@@ -142,6 +143,11 @@
/// removed, this method must be called whenever a StructType is removed to
/// avoid a dangling pointer in this cache.
void InvalidateStructLayoutInfo(const StructType *Ty) const;
+
+ /// getPreferredAlignmentLog - Return the preferred alignment of the
+ /// specified global, returned in log form. This includes an explicitly
+ /// requested alignment (if the global has one).
+ virtual unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const;
};
/// StructLayout - used to lazily calculate structure layout information for a
More information about the llvm-commits
mailing list