Removed the filename literals.

This commit is contained in:
Roberto Raggi
2009-06-15 15:03:41 +02:00
parent 1754aefdb1
commit dbba0ff8d7
4 changed files with 4 additions and 36 deletions

View File

@@ -212,8 +212,8 @@ void TranslationUnit::tokenize()
unsigned line = (unsigned) strtoul(tk.spell(), 0, 0);
lex(&tk);
if (! tk.newline && tk.is(T_STRING_LITERAL)) {
StringLiteral *fileName = control()->findOrInsertFileName(tk.string->chars(),
tk.string->size());
StringLiteral *fileName = control()->findOrInsertStringLiteral(tk.string->chars(),
tk.string->size());
pushPreprocessorLine(offset, line, fileName);
lex(&tk);
}