Brought LLVM/Clang up to top of tree. The only

change (besides logging) is that now string
literals in the IR are ConstantDataArrays instead
of ConstantArrays.

llvm-svn: 150142
This commit is contained in:
Sean Callanan
2012-02-09 03:22:41 +00:00
parent 0cfd5bd67f
commit d2b465f17a
3 changed files with 22 additions and 16 deletions

View File

@@ -512,7 +512,7 @@ private:
return false;
}
ConstantArray *real_name = dyn_cast<ConstantArray>(metadata->getOperand(0));
ConstantDataArray *real_name = dyn_cast<ConstantDataArray>(metadata->getOperand(0));
if (!real_name)
{
@@ -528,12 +528,12 @@ private:
return false;
}
if (log)
log->Printf("Found call to %s: %s\n", real_name->getAsString().c_str(), PrintValue(call_inst).c_str());
std::string name_str = real_name->getAsString();
const char* name_cstr = name_str.c_str();
if (log)
log->Printf("Found call to %s: %s\n", name_cstr, PrintValue(call_inst).c_str());
if (name_str.find("objc_msgSend") == std::string::npos)
return true;