Fix few typos in comments (write access test commit)

llvm-svn: 336887
This commit is contained in:
Stefan Granitz 2018-07-12 06:41:41 +00:00
parent 2e334e065d
commit d3b69c6be9
3 changed files with 4 additions and 4 deletions

View File

@ -369,7 +369,7 @@ private:
// simplifying symbol lookup.
LD.StaticRenamer.rename(*SrcMPtr);
// Bump the linkage and rename any anonymous/privote members in SrcM to
// Bump the linkage and rename any anonymous/private members in SrcM to
// ensure that everything will resolve properly after we partition SrcM.
makeAllSymbolsExternallyAccessible(*SrcMPtr);

View File

@ -1082,7 +1082,7 @@ public:
return &I->second;
}
/// Collect for the given module the list of function it defines
/// Collect for the given module the list of functions it defines
/// (GUID -> Summary).
void collectDefinedFunctionsForModule(StringRef ModulePath,
GVSummaryMapTy &GVSummaryMap) const;

View File

@ -323,8 +323,8 @@ void moveGlobalVariableInitializer(GlobalVariable &OrigGV,
assert(VMap[&OrigGV] == NewGV &&
"Incorrect global variable mapping in VMap.");
assert(NewGV->getParent() != OrigGV.getParent() &&
"moveGlobalVariable should only be used to move initializers between "
"modules");
"moveGlobalVariableInitializer should only be used to move "
"initializers between modules");
NewGV->setInitializer(MapValue(OrigGV.getInitializer(), VMap, RF_None,
nullptr, Materializer));