aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/llvmAsmParser.y
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-10 04:54:02 +0000
committerChris Lattner <sabre@nondot.org>2003-10-10 04:54:02 +0000
commitf797cabedff00365ffbb096e8d8cfcdb7535e97f (patch)
tree068a6dd7b2e97bb240bb6d7394f01db31a25733f /lib/AsmParser/llvmAsmParser.y
parent83bb2565c68713e195765edc3c3b56766db4b6e7 (diff)
downloadexternal_llvm-f797cabedff00365ffbb096e8d8cfcdb7535e97f.zip
external_llvm-f797cabedff00365ffbb096e8d8cfcdb7535e97f.tar.gz
external_llvm-f797cabedff00365ffbb096e8d8cfcdb7535e97f.tar.bz2
Accept 'weak' as a linkage type. For now, just turn it into linkonce linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r--lib/AsmParser/llvmAsmParser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 4543fcd..dcfb943 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -697,7 +697,7 @@ Module *RunVMAsmParser(const std::string &Filename, FILE *F) {
%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 @@ OptAssign : Name '=' {
OptLinkage : INTERNAL { $$ = GlobalValue::InternalLinkage; } |
LINKONCE { $$ = GlobalValue::LinkOnceLinkage; } |
+ WEAK { $$ = GlobalValue::LinkOnceLinkage; /* FIXME */ } |
APPENDING { $$ = GlobalValue::AppendingLinkage; } |
/*empty*/ { $$ = GlobalValue::ExternalLinkage; };