[PATCH] D41695: [Metadata] Extend 'count' field of DISubrange to take a metadata node

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 09:54:06 PST 2018


sdesmalen updated this revision to Diff 130430.
sdesmalen added a comment.

- Added versioning of the DISubrange node and added a corresponding unit test (.ll and .ll.bc) to test parsing of bitcode files generated from older versions of LLVM.
- Changed 'getCount()' -> 'getConstantCountOrNull()'.
- Changed 'getCountVariable()' -> 'getCountVariableOrNull()'


https://reviews.llvm.org/D41695

Files:
  docs/LangRef.rst
  include/llvm/IR/DIBuilder.h
  include/llvm/IR/DebugInfoMetadata.h
  lib/AsmParser/LLParser.cpp
  lib/Bitcode/Reader/MetadataLoader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/IR/AsmWriter.cpp
  lib/IR/DIBuilder.cpp
  lib/IR/DebugInfoMetadata.cpp
  lib/IR/LLVMContextImpl.h
  lib/IR/Verifier.cpp
  test/Assembler/invalid-disubrange-count-node.ll
  test/Bitcode/disubrange-v0.ll
  test/Bitcode/disubrange-v0.ll.bc
  test/Bitcode/disubrange.ll
  test/Verifier/invalid-disubrange-count-node.ll
  unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41695.130430.patch
Type: text/x-patch
Size: 24894 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180118/a1375e50/attachment.bin>


More information about the llvm-commits mailing list