mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-17 20:29:31 +00:00
Make comments a little bit more clear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
11a353a206
commit
0737651452
@ -375,16 +375,16 @@ use TableGen inheritance instead.
|
|||||||
|
|
||||||
- ``input_languages_contain`` - Returns true if a given language
|
- ``input_languages_contain`` - Returns true if a given language
|
||||||
belongs to the current input language set. Example:
|
belongs to the current input language set. Example:
|
||||||
```(input_languages_contain "c++")``.
|
``(input_languages_contain "c++")``.
|
||||||
|
|
||||||
- ``in_language`` - Evaluates to true if the language of the input
|
- ``in_language`` - Evaluates to true if the language of the input
|
||||||
file equals to the argument. Valid only when using ``case``
|
file equals to the argument. At the moment works only with
|
||||||
expression in a ``cmd_line`` tool property. Example:
|
``cmd_line`` property on non-join nodes. Example: ``(in_language
|
||||||
```(in_language "c++")``.
|
"c++")``.
|
||||||
|
|
||||||
- ``not_empty`` - Returns true if a given option (which should be
|
- ``not_empty`` - Returns true if a given option (which should be
|
||||||
either a parameter or a parameter list) is set by the
|
either a parameter or a parameter list) is set by the
|
||||||
user. Example: ```(not_empty "o")``.
|
user. Example: ``(not_empty "o")``.
|
||||||
|
|
||||||
- ``default`` - Always evaluates to true. Should always be the last
|
- ``default`` - Always evaluates to true. Should always be the last
|
||||||
test in the ``case`` expression.
|
test in the ``case`` expression.
|
||||||
|
@ -826,8 +826,10 @@ bool EmitCaseTest1Arg(const std::string& TestName,
|
|||||||
O << "InLangs.count(\"" << OptName << "\") != 0";
|
O << "InLangs.count(\"" << OptName << "\") != 0";
|
||||||
return true;
|
return true;
|
||||||
} else if (TestName == "in_language") {
|
} else if (TestName == "in_language") {
|
||||||
// TODO: remove this restriction
|
// This works only for single-argument Tool::GenerateAction. Join
|
||||||
// Works only for cmd_line!
|
// tools can process several files in different languages simultaneously.
|
||||||
|
|
||||||
|
// TODO: make this work with Edge::Weight (if possible).
|
||||||
O << "LangMap.GetLanguage(inFile) == \"" << OptName << '\"';
|
O << "LangMap.GetLanguage(inFile) == \"" << OptName << '\"';
|
||||||
return true;
|
return true;
|
||||||
} else if (TestName == "not_empty") {
|
} else if (TestName == "not_empty") {
|
||||||
|
Loading…
Reference in New Issue
Block a user