mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 07:52:35 +00:00
Fix some copy and paste typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c85a9f37e9
commit
004a833ab8
@ -741,7 +741,7 @@ int Record::getValueAsInt(const std::string &FieldName) const {
|
|||||||
if (IntInit *II = dynamic_cast<IntInit*>(R->getValue()))
|
if (IntInit *II = dynamic_cast<IntInit*>(R->getValue()))
|
||||||
return II->getValue();
|
return II->getValue();
|
||||||
throw "Record `" + getName() + "', field `" + FieldName +
|
throw "Record `" + getName() + "', field `" + FieldName +
|
||||||
"' does not have a list initializer!";
|
"' does not have an int initializer!";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getValueAsDef - This method looks up the specified field and returns its
|
/// getValueAsDef - This method looks up the specified field and returns its
|
||||||
@ -757,7 +757,7 @@ Record *Record::getValueAsDef(const std::string &FieldName) const {
|
|||||||
if (DefInit *DI = dynamic_cast<DefInit*>(R->getValue()))
|
if (DefInit *DI = dynamic_cast<DefInit*>(R->getValue()))
|
||||||
return DI->getDef();
|
return DI->getDef();
|
||||||
throw "Record `" + getName() + "', field `" + FieldName +
|
throw "Record `" + getName() + "', field `" + FieldName +
|
||||||
"' does not have a list initializer!";
|
"' does not have a def initializer!";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getValueAsBit - This method looks up the specified field and returns its
|
/// getValueAsBit - This method looks up the specified field and returns its
|
||||||
|
Loading…
x
Reference in New Issue
Block a user