Add well-known names for runtime library functions.
Add a LibCall type which represents runtime library functions that many be synthesized by Cretonne from pure instructions. Add a LibCall variant to ExternalName to represent one of these runtime functions.
This commit is contained in:
@@ -885,7 +885,9 @@ impl<'a> Parser<'a> {
|
||||
match self.token() {
|
||||
Some(Token::Name(s)) => {
|
||||
self.consume();
|
||||
Ok(ExternalName::testcase(s))
|
||||
s.parse().map_err(
|
||||
|_| self.error("invalid test case or libcall name"),
|
||||
)
|
||||
}
|
||||
Some(Token::UserRef(namespace)) => {
|
||||
self.consume();
|
||||
|
||||
Reference in New Issue
Block a user