aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2018-12-13 14:25:27 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2018-12-13 14:25:27 +0000
commit9f3cf55e63ca48d2ee2c1428674170e5943cd272 (patch)
tree7d87ebda692c9aae73debd14d8da971a088e9993 /clang/lib/CodeGen/CodeGenModule.cpp
parent320fd7383fee67af4217bf002e983246afc9cd28 (diff)
downloadllvm-9f3cf55e63ca48d2ee2c1428674170e5943cd272.zip
llvm-9f3cf55e63ca48d2ee2c1428674170e5943cd272.tar.gz
llvm-9f3cf55e63ca48d2ee2c1428674170e5943cd272.tar.bz2
[mir] Serialize DILocation inline when not possible to use a metadata reference
Summary: Sometimes MIR-level passes create DILocations that were not present in the LLVM-IR. For example, it may merge two DILocations together to produce a DILocation that points to line 0. Previously, the address of these DILocations were printed which prevented the MIR from being read back into LLVM. With this patch, DILocations will use metadata references where possible and fall back on serializing them inline like so: MOV32mr %stack.0.x.addr, 1, _, 0, _, %0, debug-location !DILocation(line: 1, scope: !15) Reviewers: aprantl, vsk, arphaman Reviewed By: aprantl Subscribers: probinson, llvm-commits Tags: #debug-info Differential Revision: https://reviews.llvm.org/D55243 llvm-svn: 349035
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions