mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user