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
This commit is contained in:
Chris Lattner 2005-11-10 18:09:27 +00:00
parent 55a6d9067b
commit 747960d21e
1 changed files with 1 additions and 0 deletions

View File

@ -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";
}