summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-10 18:09:27 +0000
committerChris Lattner <sabre@nondot.org>2005-11-10 18:09:27 +0000
commit747960d21ed470387d72f1aa4119f0d85f749ef7 (patch)
tree614a043e694c68fe074f0f929984b8156df0820a /llvm/lib/CodeGen/AsmPrinter.cpp
parent55a6d9067b26a6c559b067e672cd60ee0420d68c (diff)
downloadbcm5719-llvm-747960d21ed470387d72f1aa4119f0d85f749ef7.tar.gz
bcm5719-llvm-747960d21ed470387d72f1aa4119f0d85f749ef7.zip
Compile C strings to:
l1__2E_str_1: ; '.str_1' .asciz "foo" not: .align 0 l1__2E_str_1: ; '.str_1' .asciz "foo" llvm-svn: 24273
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index ae569bd15ae..0ba39c22584 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -36,6 +36,7 @@ void AsmPrinter::setupMachineFunction(MachineFunction &MF) {
// emitAlignment - Emit an alignment directive to the specified power of two.
void AsmPrinter::emitAlignment(unsigned NumBits) const {
+ if (NumBits == 0) return; // No need to emit alignment.
if (AlignmentIsInBytes) NumBits = 1 << NumBits;
O << AlignDirective << NumBits << "\n";
}
OpenPOWER on IntegriCloud