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)
commit3b0fe4ec0a60665b7234d4971ba091cfc25b71c8
tree9554003a540e8517d1cfff47485cfda2175c2f1c
parent7c06364dc0630a0d483b21d547bcefb3fdca0469
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.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225830 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
docs/LangRef.rst
include/llvm/Bitcode/LLVMBitCodes.h
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/Bitcode/Writer/ValueEnumerator.h
test/Assembler/invalid-mdlocation-field-bad.ll [new file with mode: 0644]
test/Assembler/invalid-mdlocation-field-twice.ll [new file with mode: 0644]
test/Assembler/invalid-mdlocation-overflow-column.ll [new file with mode: 0644]
test/Assembler/invalid-mdlocation-overflow-line.ll [new file with mode: 0644]
test/Assembler/invalid-specialized-mdnode.ll [new file with mode: 0644]
test/Assembler/mdlocation.ll [new file with mode: 0644]
utils/vim/llvm.vim