summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-03 20:07:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-03 20:07:32 +0000
commit63e92fb166b7eab187ecd19798518dced27c181c (patch)
tree659b35f8f422b546895309a84458db53cdeebe74 /llvm/lib/AsmParser
parent52b7442c281603319817753037bb61c182d4f79f (diff)
downloadbcm5719-llvm-63e92fb166b7eab187ecd19798518dced27c181c.tar.gz
bcm5719-llvm-63e92fb166b7eab187ecd19798518dced27c181c.zip
Fix a small bug in the parsing of anonymous globals.
It was able to parse hidden dllexport global i32 42 but not dllexport global i32 42 llvm-svn: 210121
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 18e2b572c6a..cbcadd073d9 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -261,6 +261,8 @@ bool LLParser::ParseTopLevelEntities() {
case lltok::kw_default: // OptionalVisibility
case lltok::kw_hidden: // OptionalVisibility
case lltok::kw_protected: // OptionalVisibility
+ case lltok::kw_dllimport: // OptionalDLLStorageClass
+ case lltok::kw_dllexport: // OptionalDLLStorageClass
case lltok::kw_thread_local: // OptionalThreadLocal
case lltok::kw_addrspace: // OptionalAddrSpace
case lltok::kw_constant: // GlobalType
OpenPOWER on IntegriCloud