[llvm-commits] [llvm] r93590 - /llvm/trunk/lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp

Chris Lattner sabre at nondot.org
Fri Jan 15 15:56:04 PST 2010


Author: lattner
Date: Fri Jan 15 17:56:03 2010
New Revision: 93590

URL: http://llvm.org/viewvc/llvm-project?rev=93590&view=rev
Log:
remove two write-only sets.

Modified:
    llvm/trunk/lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp?rev=93590&r1=93589&r2=93590&view=diff

==============================================================================
--- llvm/trunk/lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp Fri Jan 15 17:56:03 2010
@@ -41,7 +41,6 @@
 #include "llvm/Support/FormattedStream.h"
 #include "llvm/Support/Mangler.h"
 #include "llvm/Support/MathExtras.h"
-#include <set>
 using namespace llvm;
 
 namespace {
@@ -50,7 +49,6 @@
   const std::string bss_section(".bss");
 
   class SPUAsmPrinter : public AsmPrinter {
-    std::set<std::string> FnStubs, GVStubs;
   public:
     explicit SPUAsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
                            const MCAsmInfo *T, bool V) :
@@ -332,7 +330,6 @@
     // Computing the address of an external symbol, not calling it.
     if (TM.getRelocationModel() != Reloc::Static) {
       std::string Name(MAI->getGlobalPrefix()); Name += MO.getSymbolName();
-      GVStubs.insert(Name);
       O << "L" << Name << "$non_lazy_ptr";
       return;
     }
@@ -348,7 +345,6 @@
     if (TM.getRelocationModel() != Reloc::Static) {
       if (((GV->isDeclaration() || GV->hasWeakLinkage() ||
             GV->hasLinkOnceLinkage() || GV->hasCommonLinkage()))) {
-        GVStubs.insert(Name);
         O << "L" << Name << "$non_lazy_ptr";
         return;
       }





More information about the llvm-commits mailing list