diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-04-04 07:22:01 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-04-04 07:22:01 +0000 |
commit | 21cc4460efa104e8591b05a90f20130291614344 (patch) | |
tree | 6f5a7d6d7f4693fe0b16635fc34ac7c99174331d /lib/AsmParser/LLLexer.cpp | |
parent | 2cd1b777d7ba88dc4c4c072ec58dca9f96a8b4c2 (diff) |
Add support for embedded metadata to LLVM. This introduces two new types of
Constant, MDString and MDNode which can only be used by globals with a name
that starts with "llvm." or as arguments to a function with the same naming
restriction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | lib/AsmParser/LLLexer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp index 95e6c90a59..d4815d83d6 100644 --- a/lib/AsmParser/LLLexer.cpp +++ b/lib/AsmParser/LLLexer.cpp @@ -265,6 +265,7 @@ lltok::Kind LLLexer::LexToken() { case ';': SkipLineComment(); return LexToken(); + case '!': return lltok::Metadata; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '-': |