From 29ee0b14d5b6872d1e06fbbd24734c75983d9ffd Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Thu, 17 Nov 2011 14:52:36 +0000 Subject: Do not use getNameStr() anymore. Instead we switch to the recommended getName(). This fixes compilation with recent versions of LLVM. llvm-svn: 144909 --- polly/lib/Cloog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'polly/lib/Cloog.cpp') 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(); - 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); } -- cgit v1.2.3