[PATCH] D49426: [DEBUG_INFO] fix .loc directives emitted for missing prologues

Tom Weaver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 23 07:30:04 PST 2018


TWeaver added a comment.

So, I've been poking around in MCObjectStreamer.cpp and have found the area where multiple .loc directives are emitted, however,

A previous commit was made in 2013 that intentionally implemented this behaviour, you can see the commit here:

  https://github.com/llvm-mirror/llvm/commit/4df4bccc71ea0477836db9a417d3da202c2baa09

I've commented out line 269 (in the commit linked) and get the desired beheviour for this patch, however, judging from the commit message, the original author is relying on this behaviour for other functionality (debugger related).


https://reviews.llvm.org/D49426





More information about the llvm-commits mailing list