[polly] r183897 - Do not create an object to call a static function
Tobias Grosser
grosser at fim.uni-passau.de
Thu Jun 13 02:10:23 PDT 2013
Author: grosser
Date: Thu Jun 13 04:10:23 2013
New Revision: 183897
URL: http://llvm.org/viewvc/llvm-project?rev=183897&view=rev
Log:
Do not create an object to call a static function
Modified:
polly/trunk/lib/Pocc.cpp
Modified: polly/trunk/lib/Pocc.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Pocc.cpp?rev=183897&r1=183896&r2=183897&view=diff
==============================================================================
--- polly/trunk/lib/Pocc.cpp (original)
+++ polly/trunk/lib/Pocc.cpp Thu Jun 13 04:10:23 2013
@@ -94,8 +94,6 @@ bool Pocc::runTransform(Scop &S) {
fclose(F);
// Execute pocc
- sys::Program program;
-
sys::Path pocc = sys::Program::FindProgramByName("pocc");
arguments.push_back("pocc");
@@ -130,7 +128,7 @@ bool Pocc::runTransform(Scop &S) {
redirect.push_back(&plutoStdout);
redirect.push_back(&plutoStderr);
- program.ExecuteAndWait(pocc, &arguments[0], 0,
+ sys::Program::ExecuteAndWait(pocc, &arguments[0], 0,
(sys::Path const **)&redirect[0]);
// Read the created scop file
More information about the llvm-commits
mailing list