summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-02 19:35:16 +0000
committerChris Lattner <sabre@nondot.org>2008-01-02 19:35:16 +0000
commitdcbc0f30292a95b2ecd799ea9f805ab30f97be6b (patch)
tree4ceb684d8b47eb062d8cc0c583c894b7be9a7305 /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
parent5da1945cddb97fc53343d0dd285f6805ed89ed9d (diff)
downloadbcm5719-llvm-dcbc0f30292a95b2ecd799ea9f805ab30f97be6b.tar.gz
bcm5719-llvm-dcbc0f30292a95b2ecd799ea9f805ab30f97be6b.zip
leopard and above support alignment for common symbols.
llvm-svn: 45493
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index f4b689aeaf1..5deb41b4a33 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud