aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/lex/rust-token.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-02-11 10:25:01 +0000
committerGitHub <noreply@github.com>2021-02-11 10:25:01 +0000
commita6405f1438b2868418f94cc1673001ca2b50a65c (patch)
tree915c10b77703d0ef8d074775ddea95eb0f728cab /gcc/rust/lex/rust-token.h
parent0c7d0135663b6f0d94e0ffd931366ba2b32f8b2c (diff)
parent7d4ed9d38c7a636408a262f70aa69d2a34e2169d (diff)
downloadgcc-a6405f1438b2868418f94cc1673001ca2b50a65c.zip
gcc-a6405f1438b2868418f94cc1673001ca2b50a65c.tar.gz
gcc-a6405f1438b2868418f94cc1673001ca2b50a65c.tar.bz2
Merge pull request #227 from SimplyTheOther/master
Changes to AST structure in preparation for macro expansion and cleanup
Diffstat (limited to 'gcc/rust/lex/rust-token.h')
-rw-r--r--gcc/rust/lex/rust-token.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h
index fab736a..6070244 100644
--- a/gcc/rust/lex/rust-token.h
+++ b/gcc/rust/lex/rust-token.h
@@ -318,13 +318,6 @@ public:
}
// Makes and returns a new TokenPtr of type INT_LITERAL.
- /*static TokenPtr make_int (Location locus, const std::string &str)
- {
- //return TokenPtr (new Token (INT_LITERAL, locus, str));
- return std::make_shared<Token>(INT_LITERAL, locus, str);
- }*/
-
- // Makes and returns a new TokenPtr of type INT_LITERAL.
static TokenPtr make_int (Location locus, const std::string &str,
PrimitiveCoreType type_hint = CORETYPE_UNKNOWN)
{
@@ -333,13 +326,6 @@ public:
}
// Makes and returns a new TokenPtr of type FLOAT_LITERAL.
- /*static TokenPtr make_float (Location locus, const std::string &str)
- {
- return TokenPtr (new Token (FLOAT_LITERAL, locus, str));
- return std::make_shared<Token>(FLOAT_LITERAL, locus, str);
- }*/
-
- // Makes and returns a new TokenPtr of type FLOAT_LITERAL.
static TokenPtr make_float (Location locus, const std::string &str,
PrimitiveCoreType type_hint = CORETYPE_UNKNOWN)
{