mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Revise all LDC-specific errors/warnings/deprecs and insert backticks
For DMD's new syntax highlighting. I grepped in all .{h,cpp} files only.
This commit is contained in:
parent
58ef63417f
commit
2616261fd2
33 changed files with 224 additions and 219 deletions
|
@ -71,8 +71,8 @@ void Module::checkAndAddOutputFile(File *file) {
|
|||
if (i != files.end()) {
|
||||
Module *previousMod = i->second;
|
||||
::error(Loc(),
|
||||
"Output file '%s' for module '%s' collides with previous "
|
||||
"module '%s'. See the -oq option",
|
||||
"Output file '%s' for module `%s` collides with previous "
|
||||
"module `%s`. See the -oq option",
|
||||
key.c_str(), toPrettyChars(), previousMod->toPrettyChars());
|
||||
fatal();
|
||||
}
|
||||
|
@ -617,7 +617,7 @@ void loadInstrProfileData(IRState *irs) {
|
|||
#if LDC_LLVM_VER >= 309
|
||||
if (auto E = readerOrErr.takeError()) {
|
||||
handleAllErrors(std::move(E), [&](const llvm::ErrorInfoBase &EI) {
|
||||
irs->dmodule->error("Could not read profile file %s: %s",
|
||||
irs->dmodule->error("Could not read profile file '%s': %s",
|
||||
global.params.datafileInstrProf,
|
||||
EI.message().c_str());
|
||||
});
|
||||
|
@ -626,7 +626,7 @@ void loadInstrProfileData(IRState *irs) {
|
|||
#else
|
||||
std::error_code EC = readerOrErr.getError();
|
||||
if (EC) {
|
||||
irs->dmodule->error("Could not read profile file %s: %s",
|
||||
irs->dmodule->error("Could not read profile file '%s': %s",
|
||||
global.params.datafileInstrProf,
|
||||
EC.message().c_str());
|
||||
fatal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue