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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits