[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 14 10:59:54 PST 2005



Changes in directory llvm/include/llvm/CodeGen:

AsmPrinter.h updated: 1.14 -> 1.15
---
Log message:

Teach emitAlignment to handle explicit alignment requests by globals.


---
Diffs of the changes:  (+3 -2)

 AsmPrinter.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.14 llvm/include/llvm/CodeGen/AsmPrinter.h:1.15
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.14	Thu Nov 10 12:05:57 2005
+++ llvm/include/llvm/CodeGen/AsmPrinter.h	Mon Nov 14 12:59:42 2005
@@ -137,8 +137,9 @@
 
     /// 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.
     ///






More information about the llvm-commits mailing list