Add more constness to module-related APIs

llvm-svn: 206595
This commit is contained in:
Dmitri Gribenko
2014-04-18 14:36:51 +00:00
parent 4dab69815c
commit 62bcd925c0
4 changed files with 6 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target,
llvm_unreachable("could not find a reason why module is unavailable");
}
bool Module::isSubModuleOf(Module *Other) const {
bool Module::isSubModuleOf(const Module *Other) const {
const Module *This = this;
do {
if (This == Other)