diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-02 19:35:16 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-02 19:35:16 +0000 |
| commit | 564da5d646dfeb56df931b42fefa7c5f2591057e (patch) | |
| tree | 4816f2188af19c5e746a43e9a5dc5c5aabf1e777 /lib/Target/PowerPC/PPCAsmPrinter.cpp | |
| parent | 9258cd3994e54aaec66f69a321032e071391dc90 (diff) | |
leopard and above support alignment for common symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
| -rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index f4b689aeaf..5deb41b4a3 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -930,6 +930,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) { } else { SwitchToDataSection("\t.data", I); O << ".comm " << name << "," << Size; + // Darwin 9 and above support aligned common data. + if (Subtarget.isDarwin9()) + O << "," << Align; } O << "\t\t" << TAI->getCommentString() << " '" << I->getName() << "'\n"; } else { |
