diff options
Diffstat (limited to 'lib/Lexer/Lexer.cc')
| -rw-r--r-- | lib/Lexer/Lexer.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc index 5bf2230..40bfce3 100644 --- a/lib/Lexer/Lexer.cc +++ b/lib/Lexer/Lexer.cc @@ -220,17 +220,10 @@ int Lexer::readToken() { TokenLine = CurrentLine; if (LastChar == '#' && LineStart) { - std::string Directive; do { - Directive += static_cast<char>(LastChar); LastChar = Input.get(); } while (LastChar != EOF && LastChar != '\n' && LastChar != '\r'); - while (!Directive.empty() && isspace(static_cast<unsigned char>(Directive.back()))) - Directive.pop_back(); - if (Directive == "#LIB") Library = true; - else { - reportError(TokenLine, "Unknown compiler directive"); - } + reportError(TokenLine, "Unknown compiler directive"); return readToken(); } LineStart = false; |
