add a new method, getPreferredAlignmentLog.
authorChris Lattner <sabre@nondot.org>
Sun, 5 Feb 2006 01:24:06 +0000 (01:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Feb 2006 01:24:06 +0000 (01:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25977 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h

index 282676b4502b6ec0d93fcecc7220196bf6267796..147ab32102d1c350652f7dd9c2c4a8eb30cc9e0b 100644 (file)
@@ -177,6 +177,10 @@ namespace llvm {
     ///
     void SwitchSection(const char *NewSection, const GlobalValue *GV);
 
+    /// getPreferredAlignmentLog - Return the preferred alignment of the
+    /// specified global, returned in log form.  This includes an explicitly
+    /// requested alignment (if the global has one).
+    unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const;
   protected:
     /// doInitialization - Set up the AsmPrinter when we are working on a new
     /// module.  If your pass overrides this, it must make sure to explicitly