summaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-25 23:35:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-25 23:35:07 +0000
commit73a259a9d1814912255aee6c185c5aeb7bb581ba (patch)
treee6a8966841cd142e2bebe5ba6a39d823a54e5450 /include/llvm/CodeGen/AsmPrinter.h
parentd88ea4d9aa3f70d30963a1eec2a210c9aef6e24b (diff)
downloadexternal_llvm-73a259a9d1814912255aee6c185c5aeb7bb581ba.zip
external_llvm-73a259a9d1814912255aee6c185c5aeb7bb581ba.tar.gz
external_llvm-73a259a9d1814912255aee6c185c5aeb7bb581ba.tar.bz2
EmitAlignment() also emits optional fill value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 954b9bc..b848276 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -251,7 +251,9 @@ namespace llvm {
/// an explicit alignment requested, it will unconditionally override the
/// alignment request. However, if ForcedAlignBits is specified, this value
/// has final say: the ultimate alignment will be the max of ForcedAlignBits
- /// and the alignment computed with NumBits and the global.
+ /// and the alignment computed with NumBits and the global. If UseFillExpr
+ /// is true, it also emits an optional second value FillValue which the
+ /// assembler uses to fill gaps to match alignment.
///
/// The algorithm is:
/// Align = NumBits;
@@ -259,7 +261,8 @@ namespace llvm {
/// Align = std::max(Align, ForcedAlignBits);
///
void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0,
- unsigned ForcedAlignBits = 0) const;
+ unsigned ForcedAlignBits = 0, bool UseFillExpr = false,
+ unsigned FillValue = 0) const;
protected:
/// EmitZeros - Emit a block of zeros.