[llvm-commits] CVS: llvm/lib/AsmParser/Lexer.l llvmAsmParser.y
Reid Spencer
reid at x10sys.com
Sun Apr 8 18:55:59 PDT 2007
Changes in directory llvm/lib/AsmParser:
Lexer.l updated: 1.103 -> 1.104
llvmAsmParser.y updated: 1.335 -> 1.336
---
Log message:
Drop the implementation keyword.
---
Diffs of the changes: (+1 -14)
Lexer.l | 1 -
llvmAsmParser.y | 14 +-------------
2 files changed, 1 insertion(+), 14 deletions(-)
Index: llvm/lib/AsmParser/Lexer.l
diff -u llvm/lib/AsmParser/Lexer.l:1.103 llvm/lib/AsmParser/Lexer.l:1.104
--- llvm/lib/AsmParser/Lexer.l:1.103 Thu Mar 29 13:49:28 2007
+++ llvm/lib/AsmParser/Lexer.l Sun Apr 8 20:55:42 2007
@@ -208,7 +208,6 @@
hidden { return HIDDEN; }
extern_weak { return EXTERN_WEAK; }
external { return EXTERNAL; }
-implementation { return IMPLEMENTATION; }
zeroinitializer { return ZEROINITIALIZER; }
\.\.\. { return DOTDOTDOT; }
undef { return UNDEF; }
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.335 llvm/lib/AsmParser/llvmAsmParser.y:1.336
--- llvm/lib/AsmParser/llvmAsmParser.y:1.335 Thu Mar 29 20:37:13 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y Sun Apr 8 20:55:42 2007
@@ -1039,7 +1039,7 @@
%type <UIntVal> OptAlign OptCAlign
%type <StrVal> OptSection SectionString
-%token IMPLEMENTATION ZEROINITIALIZER TRUETOK FALSETOK BEGINTOK ENDTOK
+%token ZEROINITIALIZER TRUETOK FALSETOK BEGINTOK ENDTOK
%token DECLARE DEFINE GLOBAL CONSTANT SECTION VOLATILE
%token TO DOTDOTDOT NULL_TOK UNDEF INTERNAL LINKONCE WEAK APPENDING
%token DLLIMPORT DLLEXPORT EXTERN_WEAK
@@ -1942,18 +1942,6 @@
| MODULE ASM_TOK AsmBlock {
CHECK_FOR_ERROR
}
- | IMPLEMENTATION {
- // Emit an error if there are any unresolved types left.
- if (!CurModule.LateResolveTypes.empty()) {
- const ValID &DID = CurModule.LateResolveTypes.begin()->first;
- if (DID.Type == ValID::LocalName) {
- GEN_ERROR("Reference to an undefined type: '"+DID.getName() + "'");
- } else {
- GEN_ERROR("Reference to an undefined type: #" + itostr(DID.Num));
- }
- }
- CHECK_FOR_ERROR
- }
| OptLocalAssign TYPE Types {
if (!UpRefs.empty())
GEN_ERROR("Invalid upreference in type: " + (*$3)->getDescription());
More information about the llvm-commits
mailing list