aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineModuleInfoImpls.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-19 13:04:20 +0000
committerDavid Greene <greened@obbligato.org>2011-10-19 13:04:20 +0000
commitf3744a0cf9f622e0879a80c1fdcb0f6072e5a6c3 (patch)
tree632cd0c6b6e7b717091cf32b44d223a90fc65bab /lib/CodeGen/MachineModuleInfoImpls.cpp
parente338565757bfcfe9d762751c976684f66954fb45 (diff)
Make ID Parsing More Flexible
Add a mode control to value and ID parsers. The two modes are: - Parse a value. Expect the parsed ID to map to an existing object. - Parse a name. Expect the parsed ID to not map to any existing object. The first is used when parsing an identifier to be looked up, for example a record field or template argument. The second is used for parsing declarations. Paste functionality implies that declarations can contain arbitrary expressions so we need to be able to call into the general value parser to parse declarations with paste operators. So we need a way to parse a value-like thing without expecting that the result will map to some existing object. This parse mode provides that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions