From e0afd9bd536947a9bba37a8a9467c7d6fbd1b637 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 24 Jul 2004 07:48:50 +0000 Subject: [PATCH] Provide timeout values to all abstract interpreters llvm-svn: 15159 --- llvm/include/llvm/Support/ToolRunner.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Support/ToolRunner.h b/llvm/include/llvm/Support/ToolRunner.h index 9d1755a29827..bd085eab6d09 100644 --- a/llvm/include/llvm/Support/ToolRunner.h +++ b/llvm/include/llvm/Support/ToolRunner.h @@ -64,7 +64,7 @@ public: const std::string &InputFile, const std::string &OutputFile, const std::vector &SharedLibs = - std::vector()); + std::vector(), unsigned Timeout = 0); /// MakeSharedObject - This compiles the specified file (which is either a .c /// file or a .s file) into a shared object. @@ -110,7 +110,8 @@ struct AbstractInterpreter { const std::string &InputFile, const std::string &OutputFile, const std::vector &SharedLibs = - std::vector()) = 0; + std::vector(), + unsigned Timeout = 0) = 0; }; //===---------------------------------------------------------------------===// @@ -139,7 +140,8 @@ public: const std::string &InputFile, const std::string &OutputFile, const std::vector &SharedLibs = - std::vector()); + std::vector(), + unsigned Timeout = 0); // Sometimes we just want to go half-way and only generate the .c file, not // necessarily compile it with GCC and run the program. This throws an @@ -175,7 +177,8 @@ public: const std::string &InputFile, const std::string &OutputFile, const std::vector &SharedLibs = - std::vector()); + std::vector(), + unsigned Timeout = 0); // Sometimes we just want to go half-way and only generate the .s file, // not necessarily compile it all the way and run the program. This throws