remove progname which is never set. PR4085
authorChris Lattner <sabre@nondot.org>
Thu, 30 Apr 2009 00:24:33 +0000 (00:24 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Apr 2009 00:24:33 +0000 (00:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 849284e8d8c92acb26733fc5f7d4ff736f7c9a61..ffb805691fa140bea45ebbb0083057f46f04c3fc 100644 (file)
@@ -94,7 +94,6 @@ namespace {
   /// CppWriter - This class is the main chunk of code that converts an LLVM
   /// module to a C++ translation unit.
   class CppWriter : public ModulePass {
-    const char* progname;
     raw_ostream &Out;
     const Module *TheModule;
     uint64_t uniqueNum;
@@ -218,7 +217,7 @@ namespace {
   }
 
   void CppWriter::error(const std::string& msg) {
-    cerr << progname << ": " << msg << "\n";
+    cerr << msg << "\n";
     exit(2);
   }