aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-05 01:24:06 +0000
committerChris Lattner <sabre@nondot.org>2006-02-05 01:24:06 +0000
commit28adf292d903f1bc397cbf5e4058828f76f9c054 (patch)
treea3a8b352227597b5461ed2d85160bc0ac7471ff9 /include
parentfd89543e7df83970b37220006a50869dbce95ef8 (diff)
downloadexternal_llvm-28adf292d903f1bc397cbf5e4058828f76f9c054.zip
external_llvm-28adf292d903f1bc397cbf5e4058828f76f9c054.tar.gz
external_llvm-28adf292d903f1bc397cbf5e4058828f76f9c054.tar.bz2
add a new method, getPreferredAlignmentLog.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 282676b..147ab32 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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