diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-05 08:31:47 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-05 08:31:47 +0000 |
commit | ee4dab5f1f7a0c32167b8b91c5733e77d4d88dcc (patch) | |
tree | 7b4e14db824575afe72d6a34318487575bc7407b /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | ebd90c58e6d2b9aff85a4bd8ee9e98acbbbf4cb0 (diff) | |
download | bcm5719-llvm-ee4dab5f1f7a0c32167b8b91c5733e77d4d88dcc.tar.gz bcm5719-llvm-ee4dab5f1f7a0c32167b8b91c5733e77d4d88dcc.zip |
Convert assert(0) to llvm_unreachable
llvm-svn: 149816
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index bf7f7eec9fe..70cc2e56b3e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -31,6 +31,7 @@ #include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Support/Dwarf.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FormattedStream.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" @@ -714,17 +715,17 @@ void DwarfException::EmitExceptionTable() { /// EndModule - Emit all exception information that should come after the /// content. void DwarfException::EndModule() { - assert(0 && "Should be implemented"); + llvm_unreachable("Should be implemented"); } /// BeginFunction - Gather pre-function exception information. Assumes it's /// being emitted immediately after the function entry point. void DwarfException::BeginFunction(const MachineFunction *MF) { - assert(0 && "Should be implemented"); + llvm_unreachable("Should be implemented"); } /// EndFunction - Gather and emit post-function exception information. /// void DwarfException::EndFunction() { - assert(0 && "Should be implemented"); + llvm_unreachable("Should be implemented"); } |