aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-10 03:18:06 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-10 03:18:06 +0000
commit13fe5e35f69016557bde1eb0fd2229fa3b762a7a (patch)
treeb17b6964d35ffeaa66a62793e9cb123e67b69310 /lib/AsmParser/LLLexer.cpp
parentc8ddfa60b8711b95e3c46a73257cab15b3f7bbed (diff)
downloadexternal_llvm-13fe5e35f69016557bde1eb0fd2229fa3b762a7a.tar.gz
external_llvm-13fe5e35f69016557bde1eb0fd2229fa3b762a7a.tar.bz2
external_llvm-13fe5e35f69016557bde1eb0fd2229fa3b762a7a.zip
Adding a collector name attribute to Function in the IR. These
methods are new to Function: bool hasCollector() const; const std::string &getCollector() const; void setCollector(const std::string &); void clearCollector(); The assembly representation is as such: define void @f() gc "shadow-stack" { ... The implementation uses an on-the-side table to map Functions to collector names, such that there is no overhead. A StringPool is further used to unique collector names, which are extremely likely to be unique per process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLLexer.cpp')
-rw-r--r--lib/AsmParser/LLLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp
index 72e19f1d4d..ef8d27c8a3 100644
--- a/lib/AsmParser/LLLexer.cpp
+++ b/lib/AsmParser/LLLexer.cpp
@@ -468,6 +468,7 @@ int LLLexer::LexIdentifier() {
KEYWORD("module", MODULE);
KEYWORD("asm", ASM_TOK);
KEYWORD("sideeffect", SIDEEFFECT);
+ KEYWORD("gc", GC);
KEYWORD("cc", CC_TOK);
KEYWORD("ccc", CCC_TOK);