diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 14:55:09 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 14:55:09 +0000 |
| commit | 0b0271ef976cec3ee6a1ab2d654e42cf111a68bd (patch) | |
| tree | b4425f350e69c433c823dfc993711143958a25fd /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 171b92f1e159be30fbc29871fefcb09fd05a9016 (diff) | |
| download | llvm-0b0271ef976cec3ee6a1ab2d654e42cf111a68bd.zip llvm-0b0271ef976cec3ee6a1ab2d654e42cf111a68bd.tar.gz llvm-0b0271ef976cec3ee6a1ab2d654e42cf111a68bd.tar.bz2 | |
IR: getOrInsertODRUniquedType => DICompositeType::getODRType, NFC
Lift the API for debug info ODR type uniquing up a layer. Instead of
clients managing the map directly on the LLVMContext, add a static
method to DICompositeType called getODRType and handle the map in the
background. Also adds DICompositeType::getODRTypeIfExists, so far just
for convenience in the unit tests.
This simplifies the logic in LLParser and BitcodeReader. Because of
argument spam there are actually a few more lines of code now; I'll see
if I come up with a reasonable way to clean that up.
llvm-svn: 266742
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
