aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-12 21:52:11 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-12 21:52:11 +0000
commitb93569d182b784b7bf3a1347d7fcd50d11a550b1 (patch)
treeb29db3d1c3b105a96dfca6167497bcae6ecf5dbe /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent18dd78a8fd7077398e6c89cc0bee6c144e936408 (diff)
downloadllvm-b93569d182b784b7bf3a1347d7fcd50d11a550b1.zip
llvm-b93569d182b784b7bf3a1347d7fcd50d11a550b1.tar.gz
llvm-b93569d182b784b7bf3a1347d7fcd50d11a550b1.tar.bz2
IR: Stop abusing DW_TAG_base_type for compile unit arrays
The sub-arrays for compile units have for a long time been initialized to distinct temporary nodes with the `DW_TAG_base_type` tag, with no other operands. These invalid `DIBasicType`s are later replaced with appropriate arrays. This seems like a poor man's assertion that the arrays do eventually get replaced. These days, temporaries in the graph will cause assertions when writing bitcode or assembly, so this isn't necessary. Use temporary empty tuples instead. Note that the whole idea of using temporaries and then replacing them later is wasteful here. We never actually want to merge compile units by uniquing based on content. Compile units should use `getDistinct()` instead of `get()`, and then their operands can be freely replaced later on. llvm-svn: 228967
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions