AsmParser/Bitcode: Add support for MDLocation
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 21:10:44 +0000 (21:10 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 21:10:44 +0000 (21:10 +0000)
commit6a4848324bc8ed9789e3d9d99e8715b1667547d3
tree0d7be7c5469f3d78cc75b980930e1f0c72c2d674
parenta4f2925bd10233f143ef92a4df18a5f2457df0dd
AsmParser/Bitcode: Add support for MDLocation

This adds assembly and bitcode support for `MDLocation`.  The assembly
side is rather big, since this is the first `MDNode` subclass (that
isn't `MDTuple`).  Part of PR21433.

(If you're wondering where the mountains of testcase updates are, we
don't need them until I update `DILocation` and `DebugLoc` to actually
use this class.)

llvm-svn: 225830
15 files changed:
llvm/docs/LangRef.rst
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLParser.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.h
llvm/test/Assembler/invalid-mdlocation-field-bad.ll [new file with mode: 0644]
llvm/test/Assembler/invalid-mdlocation-field-twice.ll [new file with mode: 0644]
llvm/test/Assembler/invalid-mdlocation-overflow-column.ll [new file with mode: 0644]
llvm/test/Assembler/invalid-mdlocation-overflow-line.ll [new file with mode: 0644]
llvm/test/Assembler/invalid-specialized-mdnode.ll [new file with mode: 0644]
llvm/test/Assembler/mdlocation.ll [new file with mode: 0644]
llvm/utils/vim/llvm.vim