Use llvm_unreachable instead of assert(0).

Also removed some unused functions.
This commit is contained in:
David Nadlinger 2013-02-07 03:38:15 +01:00
parent 28a65ff689
commit 8ff3a8060a
18 changed files with 68 additions and 166 deletions

View file

@ -787,7 +787,7 @@ void TypeInfoClassDeclaration::codegen(Ir*i)
void TypeInfoClassDeclaration::llvmDefine()
{
#if DMDV2
assert(0);
llvm_unreachable("TypeInfoClassDeclaration should not be called for D2");
#endif
Logger::println("TypeInfoClassDeclaration::llvmDefine() %s", toChars());
LOG_SCOPE;