IR: Split out DebugInfoMetadata.h, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 2 Feb 2015 18:53:21 +0000 (18:53 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 2 Feb 2015 18:53:21 +0000 (18:53 +0000)
commitd9901ff5867073cab6c1b2f8ed0702c28dcbbcc1
treed07beb52f89e46427f097cb2bae935dc7d18d639
parent241a9e8db20cd750d34073c549d65f0d07463dbd
IR: Split out DebugInfoMetadata.h, NFC

Move debug-info-centred `Metadata` subclasses into their own
header/source file.  A couple of private template functions are needed
from both `Metadata.cpp` and `DebugInfoMetadata.cpp`, so I've moved them
to `lib/IR/MetadataImpl.h`.

llvm-svn: 227835
13 files changed:
llvm/include/llvm/IR/DebugInfo.h
llvm/include/llvm/IR/DebugInfoMetadata.h [new file with mode: 0644]
llvm/include/llvm/IR/Metadata.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/DebugInfoMetadata.cpp [new file with mode: 0644]
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Metadata.cpp
llvm/lib/IR/MetadataImpl.h [new file with mode: 0644]
llvm/unittests/IR/MetadataTest.cpp