aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-30 00:24:33 +0000
committerChris Lattner <sabre@nondot.org>2009-04-30 00:24:33 +0000
commitcf189964d742303ce5d8967d81378655e67cc03f (patch)
tree3fb17cefc89dae2f7fedf109d4142b15d9bbd152
parent8dc85ddf809b9b987b92da27c0ff7875d6e1f72d (diff)
remove progname which is never set. PR4085
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70453 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 849284e8d8..ffb805691f 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -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);
}