[llvm-commits] [llvm-gcc-4.2] r80772 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Bill Wendling
isanbard at gmail.com
Wed Sep 2 01:29:03 PDT 2009
Author: void
Date: Wed Sep 2 03:29:02 2009
New Revision: 80772
URL: http://llvm.org/viewvc/llvm-project?rev=80772&view=rev
Log:
Don't put error messages inside of DEBUG macros.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=80772&r1=80771&r2=80772&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Sep 2 03:29:02 2009
@@ -34,7 +34,6 @@
#include "llvm/Module.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/System/Host.h"
-#include "llvm/Support/Debug.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetLowering.h"
@@ -793,11 +792,9 @@
switch (TREE_CODE(exp)) {
default:
- DEBUG({
- llvm::errs() << "Unhandled expression!\n"
- << "TREE_CODE: " << TREE_CODE(exp) << "\n";
- debug_tree(exp);
- });
+ errs() << "Unhandled expression!\n"
+ << "TREE_CODE: " << TREE_CODE(exp) << "\n";
+ debug_tree(exp);
abort();
// Control flow
@@ -991,10 +988,8 @@
switch (TREE_CODE(exp)) {
default:
- DEBUG({
- errs() << "Unhandled lvalue expression!\n";
- debug_tree(exp);
- });
+ errs() << "Unhandled lvalue expression!\n";
+ debug_tree(exp);
abort();
case PARM_DECL:
@@ -1076,7 +1071,7 @@
//===----------------------------------------------------------------------===//
void TreeToLLVM::TODO(tree exp) {
- DEBUG(errs() << "Unhandled tree node\n");
+ errs() << "Unhandled tree node\n";
if (exp) debug_tree(exp);
abort();
}
More information about the llvm-commits
mailing list