Mercurial > projects > ldc
diff gen/passes/GarbageCollect2Stack.cpp @ 1553:f55ca8a1598c
Value::getNameStart and Value::getNameLength were removed
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 23 Jul 2009 20:34:35 +0200 |
parents | ed0feda76820 |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/passes/GarbageCollect2Stack.cpp Tue Jul 28 15:26:21 2009 +0200 +++ b/gen/passes/GarbageCollect2Stack.cpp Thu Jul 23 20:34:35 2009 +0200 @@ -203,7 +203,7 @@ return false; std::string metaname = CD_PREFIX; - metaname.append(ClassInfo->getNameStart(), ClassInfo->getNameEnd()); + metaname += ClassInfo->getName(); GlobalVariable* global = A.M.getGlobalVariable(metaname); if (!global || !global->hasInitializer()) @@ -348,9 +348,8 @@ continue; // Ignore unknown calls. - const char *CalleeName = Callee->getNameStart(); StringMap<FunctionInfo*>::iterator OMI = - KnownFunctions.find(CalleeName, CalleeName+Callee->getNameLen()); + KnownFunctions.find(Callee->getName()); if (OMI == KnownFunctions.end()) continue; assert(isa<PointerType>(Inst->getType()) @@ -397,7 +396,7 @@ return NULL; std::string metaname = TD_PREFIX; - metaname.append(ti_global->getNameStart(), ti_global->getNameEnd()); + metaname += ti_global->getName(); GlobalVariable* global = M.getGlobalVariable(metaname); if (!global || !global->hasInitializer())