diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-28 19:58:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-28 19:58:07 +0000 |
commit | e87f7bb50e1d08a09e29252806f6502dcff0539d (patch) | |
tree | da2eb282d465a5721e0614235d55f0a5170709e5 /include | |
parent | 54fc4d6a48b32772b1a114a43e20de521257899b (diff) | |
download | llvm-e87f7bb50e1d08a09e29252806f6502dcff0539d.tar.gz llvm-e87f7bb50e1d08a09e29252806f6502dcff0539d.tar.bz2 llvm-e87f7bb50e1d08a09e29252806f6502dcff0539d.tar.xz |
Rework global alignment computation again. Now we do round up
alignment of globals to the preferred alignment, but only when
there is no section specified on the global (by far the common
case).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index b5c287ae90..243ddbb5da 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -204,12 +204,8 @@ 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. If a global value is specified, and if that global has - /// an explicit alignment requested, it will unconditionally override the - /// alignment request. - /// - /// The algorithm is: - /// Align = NumBits; - /// if (GV && GV->hasalignment) Align = GV->getAlignment(); + /// an explicit alignment requested, it will override the alignment request + /// if required for correctness. /// void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const; @@ -218,7 +214,6 @@ namespace llvm { /// it if appropriate. void EmitBasicBlockStart(const MachineBasicBlock *MBB) const; - /// EmitGlobalConstant - Print a general LLVM constant to the .s file. void EmitGlobalConstant(const Constant *CV, unsigned AddrSpace = 0); |