IR: Require DICompositeType for ODR uniquing type map
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Apr 2016 14:42:55 +0000 (14:42 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Apr 2016 14:42:55 +0000 (14:42 +0000)
commit86f1bf98dc518177ed78c16fa97a18f3deaa12da
tree2adfab32ccf289f4b2b0236a451b50d47bb05abf
parent6145366510197e52862236960816c14b6e687004
IR: Require DICompositeType for ODR uniquing type map

Tighten up the API for debug info ODR type uniquing in LLVMContext.  The
only reason to allow other DIType subclasses is to make the unit tests
prettier :/.

llvm-svn: 266737
llvm/include/llvm/IR/LLVMContext.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/LLVMContext.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/unittests/IR/LLVMContextTest.cpp