From: Reid Spencer Date: Wed, 28 Mar 2007 02:36:42 +0000 (+0000) Subject: Replace the "implementation" keyword with "checkpoint". This more accurately X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=66a82155b4fc89a0c67c7ee88b983335bc6ec48a;p=oota-llvm.git Replace the "implementation" keyword with "checkpoint". This more accurately describes its function as check against unresolved types and definitions. This is handy for forcing error messages in assembly test cases or otherwise ensuring that everything is resolved at that point in the assembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35410 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index 7c524a2ba5e..9f7a55eb21f 100644 --- a/lib/AsmParser/Lexer.l +++ b/lib/AsmParser/Lexer.l @@ -208,7 +208,7 @@ dllexport { return DLLEXPORT; } hidden { return HIDDEN; } extern_weak { return EXTERN_WEAK; } external { return EXTERNAL; } -implementation { return IMPLEMENTATION; } +checkpoint { return CHECKPOINT; } zeroinitializer { return ZEROINITIALIZER; } \.\.\. { return DOTDOTDOT; } undef { return UNDEF; } diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 4271273573c..6bca42477c1 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1039,7 +1039,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) { %type OptAlign OptCAlign %type OptSection SectionString -%token IMPLEMENTATION ZEROINITIALIZER TRUETOK FALSETOK BEGINTOK ENDTOK +%token CHECKPOINT 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,7 +1942,7 @@ Definition | MODULE ASM_TOK AsmBlock { CHECK_FOR_ERROR } - | IMPLEMENTATION { + | CHECKPOINT { // Emit an error if there are any unresolved types left. if (!CurModule.LateResolveTypes.empty()) { const ValID &DID = CurModule.LateResolveTypes.begin()->first;