diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-14 09:13:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-14 09:13:54 +0000 |
commit | 75b3d6886762bbbc9e1805793222c29cb39fbd2f (patch) | |
tree | f0d31a746d45862ac05f931c80e61ad8d8cf94bc /lib | |
parent | 233a64846ed00c3f120f75de8171b120f5009d33 (diff) |
Capitalize messages so that they appear nicely with the linker's error messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 8e2fc4fe3f..400380926f 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -991,16 +991,16 @@ categorizeModuleFlagNodes(const NamedMDNode *ModFlags, MDNode *&ErrNode = ErrorNode[ID]; if (!ErrNode) ErrNode = Op; if (ErrNode->getOperand(2) != Val) - HasErr = emitError("Linking module flags '" + ID->getString() + - "': IDs have conflicting values!"); + HasErr = emitError("linking module flags '" + ID->getString() + + "': IDs have conflicting values"); break; } case Module::Warning: { MDNode *&WarnNode = WarningNode[ID]; if (!WarnNode) WarnNode = Op; if (WarnNode->getOperand(2) != Val) - errs() << "WARNING: Linking module flags '" << ID->getString() - << "': IDs have conflicting values!"; + errs() << "WARNING: linking module flags '" << ID->getString() + << "': IDs have conflicting values"; break; } case Module::Require: RequireNodes[ID].insert(Op); break; @@ -1008,8 +1008,8 @@ categorizeModuleFlagNodes(const NamedMDNode *ModFlags, MDNode *&OvrNode = OverrideNode[ID]; if (!OvrNode) OvrNode = Op; if (OvrNode->getOperand(2) != Val) - HasErr = emitError("Linking module flags '" + ID->getString() + - "': IDs have conflicting override values!"); + HasErr = emitError("linking module flags '" + ID->getString() + + "': IDs have conflicting override values"); break; } } @@ -1058,7 +1058,7 @@ bool ModuleLinker::linkModuleFlagsMetadata() { I = SeenIDs.begin(), E = SeenIDs.end(); I != E; ++I) { MDString *ID = *I; if (ErrorNode[ID] && WarningNode[ID]) - HasErr = emitError("Linking module flags '" + ID->getString() + + HasErr = emitError("linking module flags '" + ID->getString() + "': IDs have conflicting behaviors"); } @@ -1118,8 +1118,8 @@ bool ModuleLinker::linkModuleFlagsMetadata() { } if (!HasValue) - HasErr = emitError("Linking module flags '" + ReqID->getString() + - "': does not have the required value!"); + HasErr = emitError("linking module flags '" + ReqID->getString() + + "': does not have the required value"); } } |