I think i can address this by adding a bool to llvm::sys::fs::status which indicates whether to follow symlinks<br><div class="gmail_quote"><div dir="ltr">On Tue, Mar 7, 2017 at 5:41 AM Pavel Labath via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">labath added a comment.<br class="gmail_msg">
<br class="gmail_msg">
Zachary, unfortunately I had to revert this -- while investigating the breakages I've found a problem I don't think any of us realised -- llvm's statting code is based on stat(2), while lldb uses lstat(2). I think we need to go back and re-audit each case to see whether the behavior difference is a problem. In most of the cases, I think using stat would make things simpler (no need to special case symlink as a file type), but at least one case (SymbolFileDWARF) really depends on the lstat behavior (not resolving symlinks), so we need to figure out how to handle that.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
Repository:<br class="gmail_msg">
  rL LLVM<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D30624" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D30624</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>