[llvm-commits] [polly] r145073 - in /polly/trunk/lib/Exchange: OpenScopExporter.cpp OpenScopImporter.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Tue Nov 22 11:40:28 PST 2011
Author: grosser
Date: Tue Nov 22 13:40:28 2011
New Revision: 145073
URL: http://llvm.org/viewvc/llvm-project?rev=145073&view=rev
Log:
OpenScop: Remove use of getNameStr()
Modified:
polly/trunk/lib/Exchange/OpenScopExporter.cpp
polly/trunk/lib/Exchange/OpenScopImporter.cpp
Modified: polly/trunk/lib/Exchange/OpenScopExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopExporter.cpp?rev=145073&r1=145072&r2=145073&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopExporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopExporter.cpp Tue Nov 22 13:40:28 2011
@@ -124,7 +124,7 @@
VE = ArrayMap.end(); VI != VE; ++VI)
if ((*VI).second == i) {
const Value *V = (*VI).first;
- std::string name = V->getNameStr();
+ std::string name = V->getName();
openscop->arrays[i] = new char[name.size() + 1];
strcpy(openscop->arrays[i], name.c_str());
}
@@ -539,7 +539,7 @@
std::string ScopExporter::getFileName(Scop *S) const {
std::string FunctionName =
- S->getRegion().getEntry()->getParent()->getNameStr();
+ S->getRegion().getEntry()->getParent()->getName();
std::string FileName = FunctionName + "___" + S->getNameStr() + ".scop";
return FileName;
}
@@ -565,7 +565,7 @@
openscop.print(F);
fclose(F);
- std::string FunctionName = R.getEntry()->getParent()->getNameStr();
+ std::string FunctionName = R.getEntry()->getParent()->getName();
errs() << "Writing Scop '" << R.getNameStr() << "' in function '"
<< FunctionName << "' to '" << FileName << "'.\n";
Modified: polly/trunk/lib/Exchange/OpenScopImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopImporter.cpp?rev=145073&r1=145072&r2=145073&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopImporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopImporter.cpp Tue Nov 22 13:40:28 2011
@@ -200,7 +200,7 @@
}
std::string ScopImporter::getFileName(Scop *S) const {
std::string FunctionName =
- S->getRegion().getEntry()->getParent()->getNameStr();
+ S->getRegion().getEntry()->getParent()->getName();
std::string FileName = FunctionName + "___" + S->getNameStr() + ".scop";
return FileName;
}
@@ -226,7 +226,7 @@
openscop_scop_p openscop = openscop_scop_read(F);
fclose(F);
- std::string FunctionName = R.getEntry()->getParent()->getNameStr();
+ std::string FunctionName = R.getEntry()->getParent()->getName();
errs() << "Reading Scop '" << R.getNameStr() << "' in function '"
<< FunctionName << "' from '" << FileName << "'.\n";
More information about the llvm-commits
mailing list