OSDN Git Service

Fix VC++ complaint
authorJeff Cohen <jeffc@jolt-lang.org>
Sat, 22 Jan 2005 16:30:58 +0000 (16:30 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sat, 22 Jan 2005 16:30:58 +0000 (16:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19747 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ToolRunner.h
tools/bugpoint/CrashDebugger.cpp
tools/bugpoint/ToolRunner.h

index b5313e9..e44cd65 100644 (file)
@@ -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<std::string> *Args = 0);
   static LLC *createLLC(const std::string &ProgramPath, std::string &Message,
index 7dd6db4..a8e5e98 100644 (file)
@@ -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 << "<crash>\n";
     return true;  // Tool is still crashing.
   }
index b5313e9..e44cd65 100644 (file)
@@ -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<std::string> *Args = 0);
   static LLC *createLLC(const std::string &ProgramPath, std::string &Message,