diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-23 18:46:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-23 18:46:22 +0000 |
commit | 2cce3712fafb2e72e144414377cd48f5ab95a5ae (patch) | |
tree | 21d15f363af5b226a2c8329bf64f3331fcfece7f | |
parent | ec167fd98779a5d93d98c01b000d17b8b3896aff (diff) |
use OutStreamer.EmitCodeAlignment for alignment in the text
segment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96967 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 9f905db70e..bd2b1b6197 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -917,11 +917,10 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV, if (NumBits == 0) return; // No need to emit alignment. - unsigned FillValue = 0; if (getCurrentSection()->getKind().isText()) - FillValue = MAI->getTextAlignFillValue(); - - OutStreamer.EmitValueToAlignment(1 << NumBits, FillValue, 1, 0); + OutStreamer.EmitCodeAlignment(1 << NumBits); + else + OutStreamer.EmitValueToAlignment(1 << NumBits, 0, 1, 0); } /// LowerConstant - Lower the specified LLVM Constant to an MCExpr. |