[PATCH] D59685: [DebugInfo] MIRParser support to handle DW_OP_LLVM_convert ops

Markus Lavin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 03:19:47 PDT 2019


markus created this revision.
markus added a reviewer: aprantl.
markus added a project: debug-info.
Herald added a project: LLVM.

https://reviews.llvm.org/D56587 introduced DW_OP_LLVM_convert but forgot to update the MIR parser (came apparent when trying to add a .mir test).

This is a trivial update to the parser.


Repository:
  rL LLVM

https://reviews.llvm.org/D59685

Files:
  lib/CodeGen/MIRParser/MIParser.cpp


Index: lib/CodeGen/MIRParser/MIParser.cpp
===================================================================
--- lib/CodeGen/MIRParser/MIParser.cpp
+++ lib/CodeGen/MIRParser/MIParser.cpp
@@ -1854,6 +1854,11 @@
           Elements.push_back(Op);
           continue;
         }
+        if (unsigned Enc = dwarf::getAttributeEncoding(Token.stringValue())) {
+          lex();
+          Elements.push_back(Enc);
+          continue;
+        }
         return error(Twine("invalid DWARF op '") + Token.stringValue() + "'");
       }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59685.191835.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190322/40b8b2be/attachment.bin>


More information about the llvm-commits mailing list