This is an archive of the discontinued LLVM Phabricator instance.

Remove use of private header in LLDB
Needs RevisionPublic

Authored by xoviat on Jan 8 2018, 8:48 AM.

Details

Summary

The header is not installed from the LLVM install target.

Diff Detail

Repository
rL LLVM

Event Timeline

xoviat created this revision.Jan 8 2018, 8:48 AM
dblaikie requested changes to this revision.Jan 8 2018, 9:00 AM
dblaikie added a subscriber: dblaikie.

This looks like it's depending on implementation details of LLVM's libSupport (by redeclaring them locally). Best not to do that - can this code be changed to use the public interface of libSupport (the stuff in include/llvm/Support/Regex.h)? Or, if necessary, expand that interface to provide the necessary functionality explicitly in the header.

This revision now requires changes to proceed.Jan 8 2018, 9:00 AM
davide requested changes to this revision.Jan 8 2018, 9:04 AM
davide added a subscriber: davide.

I think the correct fix here is that suggested by @dblaikie. Eventually, FWIW, this header might disappear entirely and we could replace the private lldb implementation with the LLVM one (feel free to take this if you're interested).

Thanks for the quick response! This change was prompted by a failed build using the cmake .., cmake --build ., cmake --build . --target install standard workflow. I look forward to the fix in LLVM 7!