From 9644f84280ea5f5d6c94161860e7f1780e27f8bd Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 29 Nov 2011 02:13:21 +0000 Subject: Updates for LLVM 3.1. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@145365 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Core/Executor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Core/Executor.cpp') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 87e70a4c..a768ec38 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -449,7 +449,7 @@ void Executor::initializeGlobals(ExecutionState &state) { // not defined in this module; if it isn't resolvable then it // should be null. if (f->hasExternalWeakLinkage() && - !externalDispatcher->resolveSymbol(f->getNameStr())) { + !externalDispatcher->resolveSymbol(f->getName())) { addr = Expr::createPointer(0); } else { addr = Expr::createPointer((unsigned long) (void*) f); @@ -535,7 +535,7 @@ void Executor::initializeGlobals(ExecutionState &state) { extern void *__dso_handle __attribute__ ((__weak__)); addr = &__dso_handle; // wtf ? } else { - addr = externalDispatcher->resolveSymbol(i->getNameStr()); + addr = externalDispatcher->resolveSymbol(i->getName()); } if (!addr) klee_error("unable to load symbol(%s) while initializing globals.", @@ -551,7 +551,7 @@ void Executor::initializeGlobals(ExecutionState &state) { if (UseAsmAddresses && i->getName()[0]=='\01') { char *end; - uint64_t address = ::strtoll(i->getNameStr().c_str()+1, &end, 0); + uint64_t address = ::strtoll(i->getName().str().c_str()+1, &end, 0); if (end && *end == '\0') { klee_message("NOTE: allocated global at asm specified address: %#08llx" @@ -2667,7 +2667,7 @@ void Executor::callExternalFunction(ExecutionState &state, if (NoExternals && !okExternals.count(function->getName())) { std::cerr << "KLEE:ERROR: Calling not-OK external function : " - << function->getNameStr() << "\n"; + << function->getName().str() << "\n"; terminateStateOnError(state, "externals disallowed", "user.err"); return; } @@ -2707,7 +2707,7 @@ void Executor::callExternalFunction(ExecutionState &state, if (!SuppressExternalWarnings) { std::ostringstream os; - os << "calling external: " << function->getNameStr() << "("; + os << "calling external: " << function->getName().str() << "("; for (unsigned i=0; i