diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-11-17 14:52:36 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-11-17 14:52:36 +0000 |
| commit | 29ee0b14d5b6872d1e06fbbd24734c75983d9ffd (patch) | |
| tree | c83aa85f3af13d1064eb45ca4f9c98620cb6083e /polly/lib/Exchange/JSONExporter.cpp | |
| parent | 135c9c653444e9790bae5ac9e84786e67e5f6f31 (diff) | |
| download | bcm5719-llvm-29ee0b14d5b6872d1e06fbbd24734c75983d9ffd.tar.gz bcm5719-llvm-29ee0b14d5b6872d1e06fbbd24734c75983d9ffd.zip | |
Do not use getNameStr() anymore.
Instead we switch to the recommended getName(). This fixes compilation with
recent versions of LLVM.
llvm-svn: 144909
Diffstat (limited to 'polly/lib/Exchange/JSONExporter.cpp')
| -rwxr-xr-x | polly/lib/Exchange/JSONExporter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index d9a2ef1f05e..d9c569b45df 100755 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -83,7 +83,7 @@ struct JSONImporter : public ScopPass { char JSONExporter::ID = 0; std::string JSONExporter::getFileName(Scop *S) const { std::string FunctionName = - S->getRegion().getEntry()->getParent()->getNameStr(); + S->getRegion().getEntry()->getParent()->getName(); std::string FileName = FunctionName + "___" + S->getNameStr() + ".jscop"; return FileName; } @@ -142,7 +142,7 @@ bool JSONExporter::runOnScop(Scop &scop) { std::string ErrInfo; tool_output_file F(FileName.c_str(), ErrInfo); - std::string FunctionName = R.getEntry()->getParent()->getNameStr(); + std::string FunctionName = R.getEntry()->getParent()->getName(); errs() << "Writing JScop '" << R.getNameStr() << "' in function '" << FunctionName << "' to '" << FileName << "'.\n"; @@ -182,7 +182,7 @@ Pass *polly::createJSONExporterPass() { char JSONImporter::ID = 0; std::string JSONImporter::getFileName(Scop *S) const { std::string FunctionName = - S->getRegion().getEntry()->getParent()->getNameStr(); + S->getRegion().getEntry()->getParent()->getName(); std::string FileName = FunctionName + "___" + S->getNameStr() + ".jscop"; if (ImportPostfix != "") @@ -207,7 +207,7 @@ bool JSONImporter::runOnScop(Scop &scop) { std::string FileName = ImportDir + "/" + getFileName(S); - std::string FunctionName = R.getEntry()->getParent()->getNameStr(); + std::string FunctionName = R.getEntry()->getParent()->getName(); errs() << "Reading JScop '" << R.getNameStr() << "' in function '" << FunctionName << "' from '" << FileName << "'.\n"; OwningPtr<MemoryBuffer> result; |

