summaryrefslogtreecommitdiffstats
path: root/polly/lib/Cloog.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-11-17 14:52:36 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-11-17 14:52:36 +0000
commit29ee0b14d5b6872d1e06fbbd24734c75983d9ffd (patch)
treec83aa85f3af13d1064eb45ca4f9c98620cb6083e /polly/lib/Cloog.cpp
parent135c9c653444e9790bae5ac9e84786e67e5f6f31 (diff)
downloadbcm5719-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/Cloog.cpp')
-rw-r--r--polly/lib/Cloog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/Cloog.cpp b/polly/lib/Cloog.cpp
index f21b4d92766..fd7b1dafb0b 100644
--- a/polly/lib/Cloog.cpp
+++ b/polly/lib/Cloog.cpp
@@ -210,7 +210,7 @@ struct CloogExporter : public ScopPass {
}
std::string CloogExporter::getFileName(Region *R) const {
- std::string FunctionName = R->getEntry()->getParent()->getNameStr();
+ std::string FunctionName = R->getEntry()->getParent()->getName();
std::string ExitName, EntryName;
raw_string_ostream ExitStr(ExitName);
@@ -236,7 +236,7 @@ bool CloogExporter::runOnScop(Scop &S) {
Region &R = S.getRegion();
CloogInfo &C = getAnalysis<CloogInfo>();
- std::string FunctionName = R.getEntry()->getParent()->getNameStr();
+ std::string FunctionName = R.getEntry()->getParent()->getName();
std::string Filename = getFileName(&R);
errs() << "Writing Scop '" << R.getNameStr() << "' in function '"
@@ -296,7 +296,7 @@ bool CloogInfo::runOnScop(Scop &S) {
Function *F = S.getRegion().getEntry()->getParent();
- DEBUG(dbgs() << ":: " << F->getNameStr());
+ DEBUG(dbgs() << ":: " << F->getName());
DEBUG(dbgs() << " : " << S.getRegion().getNameStr() << "\n");;
DEBUG(C->pprint(dbgs()));
@@ -306,7 +306,7 @@ bool CloogInfo::runOnScop(Scop &S) {
void CloogInfo::printScop(raw_ostream &OS) const {
Function *function = scop->getRegion().getEntry()->getParent();
- OS << function->getNameStr() << "():\n";
+ OS << function->getName() << "():\n";
C->pprint(OS);
}
OpenPOWER on IntegriCloud