aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-11 07:45:47 +0000
committerChris Lattner <sabre@nondot.org>2005-12-11 07:45:47 +0000
commitd717b19933f1e99617205c5f0c0340e6c9cccbfc (patch)
treecef3df8a0a5d09e6b561f7eea31271ee2d3065c4 /lib/Target/PowerPC/PPCAsmPrinter.cpp
parent84384546e2f3c34755938ee1629fc6a7754bb783 (diff)
Remove type casts that are no longer needed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 66f72a77f7..b2f8bea329 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -42,7 +42,7 @@ namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
class PPCAsmPrinter : public AsmPrinter {
-public:
+ public:
std::set<std::string> FnStubs, GVStubs, LinkOnceStubs;
PPCAsmPrinter(std::ostream &O, TargetMachine &TM)
@@ -197,6 +197,7 @@ public:
Data64bitsDirective = 0; // we can't emit a 64-bit unit
AlignmentIsInBytes = false; // Alignment is by power of 2.
ConstantPoolSection = "\t.const\t";
+ LCOMMDirective = "\t.lcomm\t";
}
virtual const char *getPassName() const {
@@ -465,7 +466,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
SwitchSection(".data", I);
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
if (I->hasInternalLinkage())
- O << ".lcomm " << name << "," << Size << "," << Align;
+ O << LCOMMDirective << name << "," << Size << "," << Align;
else
O << ".comm " << name << "," << Size;
O << "\t\t; '" << I->getName() << "'\n";