From 1245c3593575d0a754cc679f9964fc35f841feee Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 23 Jul 2004 21:43:26 +0000 Subject: [PATCH] Simplify boolean test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15145 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPC32AsmPrinter.cpp | 2 +- lib/Target/PowerPC/PPCAsmPrinter.cpp | 2 +- lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp index feec9ed5ceb..b0dcf272dd0 100644 --- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp +++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp @@ -462,7 +462,7 @@ void Printer::printOp(const MachineOperand &MO, } // External global variables need a non-lazily-resolved stub - if (GV->hasInternalLinkage() == false && + if (!GV->hasInternalLinkage() && TM.AddressTaken.find(GV) != TM.AddressTaken.end()) { GVStubs.insert(Name); O << "L" << Name << "$non_lazy_ptr"; diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index feec9ed5ceb..b0dcf272dd0 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -462,7 +462,7 @@ void Printer::printOp(const MachineOperand &MO, } // External global variables need a non-lazily-resolved stub - if (GV->hasInternalLinkage() == false && + if (!GV->hasInternalLinkage() && TM.AddressTaken.find(GV) != TM.AddressTaken.end()) { GVStubs.insert(Name); O << "L" << Name << "$non_lazy_ptr"; diff --git a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index feec9ed5ceb..b0dcf272dd0 100644 --- a/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -462,7 +462,7 @@ void Printer::printOp(const MachineOperand &MO, } // External global variables need a non-lazily-resolved stub - if (GV->hasInternalLinkage() == false && + if (!GV->hasInternalLinkage() && TM.AddressTaken.find(GV) != TM.AddressTaken.end()) { GVStubs.insert(Name); O << "L" << Name << "$non_lazy_ptr"; -- 2.34.1