<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey all,<div class=""><br class=""></div><div class="">I'm trying to use LLVM's graph utilities to do some graph-related work on some of my own classes. More precisely, I'm interested in getting regions.</div><div class=""><br class=""></div><div class="">RegionInfoBase has a number of important private fields and methods: the dominator tree, post-dominator tree, dominance frontier fields are all private, as is the constructor and the destructor. The two known concrete subclasses of RegionInfo are friended, and access these members directly. It seems to me that this makes subclassing impossible, even as I don't see any reason that the algorithms wouldn't work (though I could be mistaken).</div><div class=""><br class=""></div><div class="">There are ways to go around the access levels on most class members, but I can't think of anything for the constructor and destructor that won't upset the compiler. Short of #defining MachinRegionInfo to my class's name (which probably violates ODR?), is there anything that I can do? Otherwise, would it be acceptable to make these members protected in LLVM?</div><div class=""><div class="">
<br class="Apple-interchange-newline"><span style="color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;" class="">FĂ©lix</span>
</div>
<br class=""></div></body></html>