Get rid of the prefix findOrInsert for the functions in CPlusPlus::Control.

This commit is contained in:
Roberto Raggi
2010-08-11 14:24:28 +02:00
parent f74ba9daef
commit 41b4af0501
17 changed files with 77 additions and 48 deletions

View File

@@ -188,8 +188,8 @@ void TranslationUnit::tokenize()
pushLineOffset(0);
pushPreprocessorLine(0, 1, fileId());
const Identifier *lineId = control()->findOrInsertIdentifier("line");
const Identifier *genId = control()->findOrInsertIdentifier("gen");
const Identifier *lineId = control()->identifier("line");
const Identifier *genId = control()->identifier("gen");
bool generated = false;
Token tk;
@@ -218,7 +218,7 @@ void TranslationUnit::tokenize()
unsigned line = (unsigned) strtoul(tk.spell(), 0, 0);
lex(&tk);
if (! tk.f.newline && tk.is(T_STRING_LITERAL)) {
const StringLiteral *fileName = control()->findOrInsertStringLiteral(tk.string->chars(),
const StringLiteral *fileName = control()->stringLiteral(tk.string->chars(),
tk.string->size());
pushPreprocessorLine(offset, line, fileName);
lex(&tk);