summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-23 18:46:22 +0000
committerChris Lattner <sabre@nondot.org>2010-02-23 18:46:22 +0000
commite4f249bc06cc6555ee13919890f0b3e5e143b9e8 (patch)
treeef25de6dece52b777e223e86b4fb1ad4e0b4558f /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parenteebaf6a76fd065a10bc526e94843cedacdbb7868 (diff)
downloadbcm5719-llvm-e4f249bc06cc6555ee13919890f0b3e5e143b9e8.tar.gz
bcm5719-llvm-e4f249bc06cc6555ee13919890f0b3e5e143b9e8.zip
use OutStreamer.EmitCodeAlignment for alignment in the text
segment. llvm-svn: 96967
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 9f905db70e9..bd2b1b61971 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud