[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Module.cpp

Reid Spencer reid at x10sys.com
Mon Sep 13 22:43:33 PDT 2004



Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.161 -> 1.162
Module.cpp updated: 1.56 -> 1.57
---
Log message:

Okay, the list of link-time passes wasn't such a hot idea. Its prone to
error. We'll strategize on this when we have multiple front ends to deal
with. For now llvm-ld just runs a standard set of transforms.


---
Diffs of the changes:  (+0 -21)

Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.161 llvm/lib/VMCore/AsmWriter.cpp:1.162
--- llvm/lib/VMCore/AsmWriter.cpp:1.161	Tue Sep 14 00:06:58 2004
+++ llvm/lib/VMCore/AsmWriter.cpp	Tue Sep 14 00:43:23 2004
@@ -778,20 +778,6 @@
     Out << " ]\n";
   }
 
-  // Loop over the link time pass list and emit them.
-  Module::pass_iterator PI = M->pass_begin();
-  Module::pass_iterator PE = M->pass_end();
-  if (LI != LE) {
-    Out << "passes = [ ";
-    while (LI != LE) {
-      Out << '"' << *LI << '"';
-      ++LI;
-      if (LI != LE)
-        Out << ", ";
-    }
-    Out << " ]\n";
-  }
-  
   // Loop over the symbol table, emitting all named constants.
   printSymbolTable(M->getSymbolTable());
   


Index: llvm/lib/VMCore/Module.cpp
diff -u llvm/lib/VMCore/Module.cpp:1.56 llvm/lib/VMCore/Module.cpp:1.57
--- llvm/lib/VMCore/Module.cpp:1.56	Mon Sep 13 18:44:23 2004
+++ llvm/lib/VMCore/Module.cpp	Tue Sep 14 00:43:23 2004
@@ -270,13 +270,6 @@
   return "";     // Must not have found anything...
 }
 
-void Module::removePass(const std::string& Lib) { 
-  PassListType::iterator I = find(PassList.begin(),PassList.end(),Lib);
-  if (I != PassList.end())
-    PassList.erase(I);
-}
-
-
 //===----------------------------------------------------------------------===//
 // Other module related stuff.
 //






More information about the llvm-commits mailing list