summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-14 05:43:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-14 05:43:23 +0000
commitf27c4cde06292c23834f55885b07e823c88b4413 (patch)
tree199793b7037f86c05129bf14e96a0def960f0205 /llvm/lib
parent2cdd49de2a22a4a1cf77019623d40112b1031a61 (diff)
downloadbcm5719-llvm-f27c4cde06292c23834f55885b07e823c88b4413.tar.gz
bcm5719-llvm-f27c4cde06292c23834f55885b07e823c88b4413.zip
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. llvm-svn: 16333
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/AsmParser/Lexer.l1
-rw-r--r--llvm/lib/AsmParser/llvmAsmParser.y17
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp14
-rw-r--r--llvm/lib/VMCore/Module.cpp7
4 files changed, 1 insertions, 38 deletions
diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l
index 9290cf1ae07..45361bd77b8 100644
--- a/llvm/lib/AsmParser/Lexer.l
+++ b/llvm/lib/AsmParser/Lexer.l
@@ -195,7 +195,6 @@ not { return NOT; } /* Deprecated, turned into XOR */
target { return TARGET; }
triple { return TRIPLE; }
deplibs { return DEPLIBS; }
-passes { return PASSES; }
endian { return ENDIAN; }
pointersize { return POINTERSIZE; }
little { return LITTLE; }
diff --git a/llvm/lib/AsmParser/llvmAsmParser.y b/llvm/lib/AsmParser/llvmAsmParser.y
index aec7b38dbdc..ce92c9cb697 100644
--- a/llvm/lib/AsmParser/llvmAsmParser.y
+++ b/llvm/lib/AsmParser/llvmAsmParser.y
@@ -910,7 +910,7 @@ Module *llvm::RunVMAsmParser(const std::string &Filename, FILE *F) {
%token DECLARE GLOBAL CONSTANT VOLATILE
%token TO DOTDOTDOT NULL_TOK CONST INTERNAL LINKONCE WEAK APPENDING
%token OPAQUE NOT EXTERNAL TARGET TRIPLE ENDIAN POINTERSIZE LITTLE BIG
-%token DEPLIBS PASSES
+%token DEPLIBS
// Basic Block Terminating Operators
%token <TermOpVal> RET BR SWITCH INVOKE UNWIND
@@ -1484,8 +1484,6 @@ ConstPool : ConstPool OptAssign TYPE TypesV { // Types can be defined in the co
}
| ConstPool DEPLIBS '=' LibrariesDefinition {
}
- | ConstPool PASSES '=' PassesDefinition {
- }
| /* empty: end of list */ {
};
@@ -1524,19 +1522,6 @@ LibList : LibList ',' STRINGCONSTANT {
}
;
-PassesDefinition : '[' PassList ']';
-PassList : PassList ',' STRINGCONSTANT {
- CurModule.CurrentModule->addLibrary($3);
- free($3);
- }
- | STRINGCONSTANT {
- CurModule.CurrentModule->addLibrary($1);
- free($1);
- }
- | /* empty: end of list */ {
- }
- ;
-
//===----------------------------------------------------------------------===//
// Rules to match Function Headers
//===----------------------------------------------------------------------===//
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 0cca2a78824..236e243caad 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -778,20 +778,6 @@ void AssemblyWriter::printModule(const Module *M) {
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());
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp
index 1dae14ec53f..3759cfd85eb 100644
--- a/llvm/lib/VMCore/Module.cpp
+++ b/llvm/lib/VMCore/Module.cpp
@@ -270,13 +270,6 @@ std::string Module::getTypeName(const Type *Ty) const {
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.
//
OpenPOWER on IntegriCloud