This is an archive of the discontinued LLVM Phabricator instance.

Make IPDBSession::getGlobalScope a non-const method
ClosedPublic

Authored by amccarth on Jun 21 2017, 11:46 AM.

Details

Reviewers
zturner
Summary

There doesn't seem to be a compelling reason why this method should be const other than it was possible with the DIA implementation. The native session is going to act as a symbol factory and cache. This could be acheived with mutable (and the existing const_cast), but it seems cleaner to accept that this method affects the state of the session.

This change eliminates an existing const_cast.

Diff Detail

Event Timeline

amccarth created this revision.Jun 21 2017, 11:46 AM
zturner accepted this revision.Jun 22 2017, 10:56 AM
This revision is now accepted and ready to land.Jun 22 2017, 10:56 AM
amccarth closed this revision.Dec 19 2019, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2019, 9:37 AM