diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-14 19:00:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-14 19:00:06 +0000 |
commit | a1ab72daadbdc5b499ce7e7e97c4b80efad46736 (patch) | |
tree | df28d73e5b7122dda99d47f25d3ad5bfb342db8d /include | |
parent | ac7fd7fcc67948475c89f033b90d94b666722dd7 (diff) | |
download | external_llvm-a1ab72daadbdc5b499ce7e7e97c4b80efad46736.zip external_llvm-a1ab72daadbdc5b499ce7e7e97c4b80efad46736.tar.gz external_llvm-a1ab72daadbdc5b499ce7e7e97c4b80efad46736.tar.bz2 |
Teach emitAlignment to handle explicit alignment requests by globals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index e6b7fcc..1a20727 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -137,8 +137,9 @@ namespace llvm { /// emitAlignment - Emit an alignment directive to the specified power of /// two boundary. For example, if you pass in 3 here, you will get an 8 - /// byte alignment. - void emitAlignment(unsigned NumBits) const; + /// byte alignment. If a global value is specified, and if that global has + /// an explicit alignment requested, it will override the alignment request. + void emitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const; /// emitZeros - Emit a block of zeros. /// |