diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp @@ -53,8 +53,7 @@ DwarfCFIException::DwarfCFIException(AsmPrinter *A) : DwarfCFIExceptionBase(A), shouldEmitPersonality(false), - forceEmitPersonality(false), shouldEmitLSDA(false), - shouldEmitMoves(false) {} + forceEmitPersonality(false), shouldEmitLSDA(false) {} DwarfCFIException::~DwarfCFIException() {} @@ -87,7 +86,7 @@ } void DwarfCFIException::beginFunction(const MachineFunction *MF) { - shouldEmitMoves = shouldEmitPersonality = shouldEmitLSDA = false; + shouldEmitPersonality = shouldEmitLSDA = false; const Function &F = MF->getFunction(); // If any landing pads survive, we need an EH table. @@ -96,7 +95,7 @@ // See if we need frame move info. AsmPrinter::CFIMoveType MoveType = Asm->needsCFIMoves(); - shouldEmitMoves = MoveType != AsmPrinter::CFI_M_None; + bool shouldEmitMoves = MoveType != AsmPrinter::CFI_M_None; const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); unsigned PerEncoding = TLOF.getPersonalityEncoding(); diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h @@ -44,9 +44,6 @@ /// Per-function flag to indicate if .cfi_lsda should be emitted. bool shouldEmitLSDA; - /// Per-function flag to indicate if frame moves info should be emitted. - bool shouldEmitMoves; - public: //===--------------------------------------------------------------------===// // Main entry points.