From 254784f9e0ae59fc060ccd54b39cd1e94ac91356 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 5 May 2011 22:14:31 +0000 Subject: [PATCH 1/1] Remove the DwarfTable enum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130959 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCAsmInfo.h | 5 ++--- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 --- lib/CodeGen/LLVMTargetMachine.cpp | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 2ed5c0a47a2..6800f2029fb 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -29,7 +29,7 @@ namespace llvm { /// MCAsmInfo - This class is intended to be used as a base class for asm /// properties and features specific to the target. namespace ExceptionHandling { - enum ExceptionsType { None, DwarfTable, DwarfCFI, SjLj, ARM }; + enum ExceptionsType { None, DwarfCFI, SjLj, ARM }; } class MCAsmInfo { @@ -462,8 +462,7 @@ namespace llvm { } bool isExceptionHandlingDwarf() const { return - (ExceptionsType == ExceptionHandling::DwarfTable || - ExceptionsType == ExceptionHandling::DwarfCFI || + (ExceptionsType == ExceptionHandling::DwarfCFI || ExceptionsType == ExceptionHandling::ARM); } diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index dad581b2d29..31bf418178a 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -195,9 +195,6 @@ bool AsmPrinter::doInitialization(Module &M) { case ExceptionHandling::SjLj: DE = new DwarfSjLjException(this); return false; - case ExceptionHandling::DwarfTable: - DE = new DwarfTableException(this); - return false; case ExceptionHandling::DwarfCFI: DE = new DwarfCFIException(this); return false; diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index e1dad2efa98..13cd45e592c 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -324,7 +324,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, PM.add(createSjLjEHPass(getTargetLowering())); // FALLTHROUGH case ExceptionHandling::DwarfCFI: - case ExceptionHandling::DwarfTable: case ExceptionHandling::ARM: PM.add(createDwarfEHPass(this)); break; -- 2.34.1