[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Chris Lattner
sabre at nondot.org
Mon Jan 15 10:28:34 PST 2007
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.253 -> 1.254
---
Log message:
make this more efficient in release builds (time and space)
---
Diffs of the changes: (+2 -6)
AsmWriter.cpp | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.253 llvm/lib/VMCore/AsmWriter.cpp:1.254
--- llvm/lib/VMCore/AsmWriter.cpp:1.253 Sun Jan 14 20:27:26 2007
+++ llvm/lib/VMCore/AsmWriter.cpp Mon Jan 15 12:28:18 2007
@@ -873,11 +873,9 @@
abort();
}
switch (GV->getVisibility()) {
+ default: assert(0 && "Invalid visibility style!");
case GlobalValue::DefaultVisibility: break;
case GlobalValue::HiddenVisibility: Out << "hidden "; break;
- default:
- cerr << "Invalid visibility style!\n";
- abort();
}
}
@@ -982,11 +980,9 @@
abort();
}
switch (F->getVisibility()) {
+ default: assert(0 && "Invalid visibility style!");
case GlobalValue::DefaultVisibility: break;
case GlobalValue::HiddenVisibility: Out << "hidden "; break;
- default:
- cerr << "Invalid visibility style!\n";
- abort();
}
}
More information about the llvm-commits
mailing list