Pulled in a new revision of LLVM/Clang and added
several patches. These patches fix a problem
where templated types were not being completed the
first time they were used, and fix a variety of
minor issues I discovered while fixing that problem.
One of the previous local patches was resolved in
the most recent Clang, so I removed it. The others
will be removed in due course.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@144984 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index ef3fa76..cc97706 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -107,7 +107,7 @@
llvm_function.setLinkage(GlobalValue::ExternalLinkage);
- std::string name = llvm_function.getNameStr();
+ std::string name = llvm_function.getName().str();
return true;
}
@@ -141,7 +141,7 @@
std::string ptr_name;
if (store_ptr->hasName())
- ptr_name = store_ptr->getNameStr();
+ ptr_name = store_ptr->getName().str();
if (isa <AllocaInst> (store_ptr))
break;
@@ -342,7 +342,7 @@
bool is_decl = fun->isDeclaration();
if (log)
- log->Printf("Examining %s function %s", (is_decl ? "declaration" : "non-declaration"), fun->getNameStr().c_str());
+ log->Printf("Examining %s function %s", (is_decl ? "declaration" : "non-declaration"), fun->getName().str().c_str());
if (!is_decl)
continue;