IR: Add MDLocation class
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 20:44:56 +0000 (20:44 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Jan 2015 20:44:56 +0000 (20:44 +0000)
commitd64096265605491a623ad566db9459e42dbe9ae7
treec31c2b220b71c2a7c1c1579ec7d4ab73762c2cdb
parent9e495c518c1443ad88a5f6f1ab0e0185ef1e20ed
IR: Add MDLocation class

Add a new subclass of `UniquableMDNode`, `MDLocation`.  This will be the
IR version of `DebugLoc` and `DILocation`.  The goal is to rename this
to `DILocation` once the IR classes supersede the `DI`-prefixed
wrappers.

This isn't used anywhere yet.  Part of PR21433.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225824 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.def
include/llvm/IR/Metadata.h
lib/IR/AsmWriter.cpp
lib/IR/LLVMContextImpl.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Metadata.cpp
unittests/IR/MetadataTest.cpp