mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 17:18:55 +00:00
[TableGen] Use Twine instead of std::string concatenation in two calls to PrintFatalError.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2555ced389
commit
1af8077b28
@ -667,8 +667,8 @@ Record *SubtargetEmitter::FindWriteResources(
|
||||
// then call FindWriteResources recursively with that model here.
|
||||
if (!ResDef) {
|
||||
PrintFatalError(ProcModel.ModelDef->getLoc(),
|
||||
std::string("Processor does not define resources for ")
|
||||
+ SchedWrite.TheDef->getName());
|
||||
Twine("Processor does not define resources for ") +
|
||||
SchedWrite.TheDef->getName());
|
||||
}
|
||||
return ResDef;
|
||||
}
|
||||
@ -719,8 +719,8 @@ Record *SubtargetEmitter::FindReadAdvance(const CodeGenSchedRW &SchedRead,
|
||||
// then call FindReadAdvance recursively with that model here.
|
||||
if (!ResDef && SchedRead.TheDef->getName() != "ReadDefault") {
|
||||
PrintFatalError(ProcModel.ModelDef->getLoc(),
|
||||
std::string("Processor does not define resources for ")
|
||||
+ SchedRead.TheDef->getName());
|
||||
Twine("Processor does not define resources for ") +
|
||||
SchedRead.TheDef->getName());
|
||||
}
|
||||
return ResDef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user