summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorAmjad Aboud <amjad.aboud@intel.com>2016-12-25 10:12:09 +0000
committerAmjad Aboud <amjad.aboud@intel.com>2016-12-25 10:12:09 +0000
commit7faeecc8f78c31c24c32a9c2e468e840e1b0a15d (patch)
tree070d7be17f00e414ff58b6f2b3b8517d3d2341bb /llvm/lib/AsmParser/LLLexer.cpp
parent5dc0bba4e4a76a338dd34ef6eee695e8446e9236 (diff)
downloadbcm5719-llvm-7faeecc8f78c31c24c32a9c2e468e840e1b0a15d.tar.gz
bcm5719-llvm-7faeecc8f78c31c24c32a9c2e468e840e1b0a15d.zip
[DebugInfo] Added support for Checksum debug info feature.
Differential Revision: https://reviews.llvm.org/D27642 llvm-svn: 290514
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r--llvm/lib/AsmParser/LLLexer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp
index bed5306cc07..752942fc9fc 100644
--- a/llvm/lib/AsmParser/LLLexer.cpp
+++ b/llvm/lib/AsmParser/LLLexer.cpp
@@ -808,6 +808,12 @@ lltok::Kind LLLexer::LexIdentifier() {
StrVal.assign(Keyword.begin(), Keyword.end());
return lltok::DIFlag;
}
+
+ if (Keyword.startswith("CSK_")) {
+ StrVal.assign(Keyword.begin(), Keyword.end());
+ return lltok::ChecksumKind;
+ }
+
if (Keyword == "NoDebug" || Keyword == "FullDebug" ||
Keyword == "LineTablesOnly") {
StrVal.assign(Keyword.begin(), Keyword.end());
OpenPOWER on IntegriCloud