Extend Clang's TableGen emitter for attributes to support bool arguments.

llvm-svn: 128330
This commit is contained in:
Douglas Gregor 2011-03-26 03:40:01 +00:00
parent 7ab142b55a
commit fa38bd3dfe
1 changed files with 2 additions and 0 deletions

View File

@ -477,6 +477,8 @@ static Argument *createArgument(Record &Arg, StringRef Attr,
Ptr = new SimpleArgument(Arg, Attr, "FunctionDecl *");
else if (ArgName == "IdentifierArgument")
Ptr = new SimpleArgument(Arg, Attr, "IdentifierInfo *");
else if (ArgName == "BoolArgument") Ptr = new SimpleArgument(Arg, Attr,
"bool");
else if (ArgName == "IntArgument") Ptr = new SimpleArgument(Arg, Attr, "int");
else if (ArgName == "StringArgument") Ptr = new StringArgument(Arg, Attr);
else if (ArgName == "TypeArgument")