From f240b487a30c571cb6202e73b88942d03a5ab843 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Thu, 9 Jan 2014 10:42:15 +0000 Subject: Remove IR/Writer.h This should fix the buildbots. llvm-svn: 198859 --- polly/lib/CodeGen/Cloog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'polly/lib/CodeGen/Cloog.cpp') diff --git a/polly/lib/CodeGen/Cloog.cpp b/polly/lib/CodeGen/Cloog.cpp index 607dcbefe49..ebf82b614e6 100644 --- a/polly/lib/CodeGen/Cloog.cpp +++ b/polly/lib/CodeGen/Cloog.cpp @@ -28,7 +28,6 @@ #include "polly/ScopInfo.h" #define DEBUG_TYPE "polly-cloog" -#include "llvm/IR/Writer.h" #include "llvm/IR/Module.h" #include "llvm/Support/Debug.h" @@ -258,11 +257,11 @@ std::string CloogExporter::getFileName(Region *R) const { raw_string_ostream ExitStr(ExitName); raw_string_ostream EntryStr(EntryName); - WriteAsOperand(EntryStr, R->getEntry(), false); + R->getEntry()->printAsOperand(EntryStr, false); EntryStr.str(); if (R->getExit()) { - WriteAsOperand(ExitStr, R->getExit(), false); + R->getExit()->printAsOperand(ExitStr, false); ExitStr.str(); } else ExitName = "FunctionExit"; -- cgit v1.2.3