[llvm-commits] CVS: llvm/lib/AsmParser/Lexer.l llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 9 23:55:01 PDT 2003
Changes in directory llvm/lib/AsmParser:
Lexer.l updated: 1.38 -> 1.39
llvmAsmParser.y updated: 1.126 -> 1.127
---
Log message:
Accept 'weak' as a linkage type. For now, just turn it into linkonce linkage
---
Diffs of the changes: (+3 -1)
Index: llvm/lib/AsmParser/Lexer.l
diff -u llvm/lib/AsmParser/Lexer.l:1.38 llvm/lib/AsmParser/Lexer.l:1.39
--- llvm/lib/AsmParser/Lexer.l:1.38 Mon Sep 8 13:54:47 2003
+++ llvm/lib/AsmParser/Lexer.l Thu Oct 9 23:54:02 2003
@@ -170,6 +170,7 @@
const { return CONST; }
internal { return INTERNAL; }
linkonce { return LINKONCE; }
+weak { return WEAK; }
appending { return APPENDING; }
uninitialized { return EXTERNAL; } /* Deprecated, turn into external */
external { return EXTERNAL; }
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.126 llvm/lib/AsmParser/llvmAsmParser.y:1.127
--- llvm/lib/AsmParser/llvmAsmParser.y:1.126 Thu Oct 9 22:56:01 2003
+++ llvm/lib/AsmParser/llvmAsmParser.y Thu Oct 9 23:54:02 2003
@@ -697,7 +697,7 @@
%token IMPLEMENTATION ZEROINITIALIZER TRUE FALSE BEGINTOK ENDTOK
%token DECLARE GLOBAL CONSTANT VOLATILE
-%token TO EXCEPT DOTDOTDOT NULL_TOK CONST INTERNAL LINKONCE APPENDING
+%token TO EXCEPT DOTDOTDOT NULL_TOK CONST INTERNAL LINKONCE WEAK APPENDING
%token OPAQUE NOT EXTERNAL TARGET ENDIAN POINTERSIZE LITTLE BIG
// Basic Block Terminating Operators
@@ -763,6 +763,7 @@
OptLinkage : INTERNAL { $$ = GlobalValue::InternalLinkage; } |
LINKONCE { $$ = GlobalValue::LinkOnceLinkage; } |
+ WEAK { $$ = GlobalValue::LinkOnceLinkage; /* FIXME */ } |
APPENDING { $$ = GlobalValue::AppendingLinkage; } |
/*empty*/ { $$ = GlobalValue::ExternalLinkage; };
More information about the llvm-commits
mailing list