From 83881957edee0b1cb89428fa1a3b022d7d84ee13 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sat, 22 Jan 2005 16:30:58 +0000 Subject: [PATCH] Fix VC++ complaint git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19747 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ToolRunner.h | 3 ++- tools/bugpoint/CrashDebugger.cpp | 2 +- tools/bugpoint/ToolRunner.h | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/ToolRunner.h b/include/llvm/Support/ToolRunner.h index b5313e942ca..e44cd657414 100644 --- a/include/llvm/Support/ToolRunner.h +++ b/include/llvm/Support/ToolRunner.h @@ -79,7 +79,8 @@ public: /// LLVM bytecode in a variety of ways. This abstract interface hides this /// complexity behind a simple interface. /// -struct AbstractInterpreter { +class AbstractInterpreter { +public: static CBE *createCBE(const std::string &ProgramPath, std::string &Message, const std::vector *Args = 0); static LLC *createLLC(const std::string &ProgramPath, std::string &Message, diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index 7dd6db4ab58..a8e5e98f252 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -431,7 +431,7 @@ static bool TestForCodeGenCrash(BugDriver &BD, Module *M) { BD.compileProgram(M); std::cerr << '\n'; return false; - } catch (ToolExecutionError &TEE) { + } catch (ToolExecutionError &) { std::cerr << "\n"; return true; // Tool is still crashing. } diff --git a/tools/bugpoint/ToolRunner.h b/tools/bugpoint/ToolRunner.h index b5313e942ca..e44cd657414 100644 --- a/tools/bugpoint/ToolRunner.h +++ b/tools/bugpoint/ToolRunner.h @@ -79,7 +79,8 @@ public: /// LLVM bytecode in a variety of ways. This abstract interface hides this /// complexity behind a simple interface. /// -struct AbstractInterpreter { +class AbstractInterpreter { +public: static CBE *createCBE(const std::string &ProgramPath, std::string &Message, const std::vector *Args = 0); static LLC *createLLC(const std::string &ProgramPath, std::string &Message, -- 2.34.1