summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-28 01:08:40 +0000
committerChris Lattner <sabre@nondot.org>2010-04-28 01:08:40 +0000
commita7b611c10d0e5fef5870d854518e639ce3d3c6be (patch)
treea69c55ecd495ec3f044b329cd214fefb2141adb5 /include
parent755824756ccdc8f7b1c6f85efffdffb526461cc4 (diff)
downloadexternal_llvm-a7b611c10d0e5fef5870d854518e639ce3d3c6be.zip
external_llvm-a7b611c10d0e5fef5870d854518e639ce3d3c6be.tar.gz
external_llvm-a7b611c10d0e5fef5870d854518e639ce3d3c6be.tar.bz2
further simplify EmitAlignment by eliminating the
ForcedAlignBits argument, tweaking the single client of it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 43643fc..5a1e7f1 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -204,17 +204,13 @@ namespace llvm {
/// 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. 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.
+ /// alignment request.
///
/// The algorithm is:
/// Align = NumBits;
- /// if (GV && GV->hasalignment) Align = GV->getalignment();
- /// Align = std::max(Align, ForcedAlignBits);
+ /// if (GV && GV->hasalignment) Align = GV->getAlignment();
///
- void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0,
- unsigned ForcedAlignBits = 0) const;
+ void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const;
/// EmitBasicBlockStart - This method prints the label for the specified
/// MachineBasicBlock, an alignment (if present) and a comment describing