diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AsmParser/Lexer.l | 1 | ||||
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 17 | ||||
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 14 | ||||
-rw-r--r-- | lib/VMCore/Module.cpp | 7 |
4 files changed, 1 insertions, 38 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index 9290cf1ae0..45361bd77b 100644 --- a/lib/AsmParser/Lexer.l +++ b/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/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index aec7b38dbd..ce92c9cb69 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/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/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 0cca2a7882..236e243caa 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 1dae14ec53..3759cfd85e 100644 --- a/lib/VMCore/Module.cpp +++ b/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. // |