diff options
| author | Dan Gohman <gohman@apple.com> | 2010-08-24 14:35:45 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-08-24 14:35:45 +0000 |
| commit | 27356113489e4240818aec8e70b2e3512edeb8a4 (patch) | |
| tree | 1013b179e53108ba42d06c3df28b8daa434ab769 /lib/AsmParser/LLParser.cpp | |
| parent | c9e0638b941c852379590f9356ee2d66456dd873 (diff) | |
| download | external_llvm-27356113489e4240818aec8e70b2e3512edeb8a4.zip external_llvm-27356113489e4240818aec8e70b2e3512edeb8a4.tar.gz external_llvm-27356113489e4240818aec8e70b2e3512edeb8a4.tar.bz2 | |
Add a comment explaining why this code doesn't just call
ParseMetadataValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.cpp')
| -rw-r--r-- | lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 0eb1b70..7766ad6 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -1134,6 +1134,10 @@ bool LLParser::ParseInstructionMetadata(Instruction *Inst, if (ParseToken(lltok::exclaim, "expected '!' here")) return true; + // This code is similar to that of ParseMetadataValue, however it needs to + // have special-case code for a forward reference; see the comments on + // ForwardRefInstMetadata for details. Also, MDStrings are not supported + // at the top level here. if (Lex.getKind() == lltok::lbrace) { ValID ID; if (ParseMetadataListValue(ID, PFS)) |
