diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-10 18:09:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-10 18:09:27 +0000 |
commit | 2a21c6e86101c857d683e7bdefb775654ccab7e3 (patch) | |
tree | 158666f7b4e29aeff75b3f214de9704e3b18df50 /lib/CodeGen/AsmPrinter.cpp | |
parent | 2980cefb809c60aa1d7dd85adfc2c269f731de88 (diff) |
Compile C strings to:
l1__2E_str_1: ; '.str_1'
.asciz "foo"
not:
.align 0
l1__2E_str_1: ; '.str_1'
.asciz "foo"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index ae569bd15a..0ba39c2258 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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"; } |