forked from OSchip/llvm-project
Remove unused variables. No functionality change.
llvm-svn: 315185
This commit is contained in:
parent
977c546b0c
commit
16610028ea
|
@ -1169,7 +1169,6 @@ ItaniumRecordLayoutBuilder::LayoutBase(const BaseSubobjectInfo *Base) {
|
|||
// Query the external layout to see if it provides an offset.
|
||||
bool HasExternalLayout = false;
|
||||
if (UseExternalLayout) {
|
||||
llvm::DenseMap<const CXXRecordDecl *, CharUnits>::iterator Known;
|
||||
if (Base->IsVirtual)
|
||||
HasExternalLayout = External.getExternalNVBaseOffset(Base->Class, Offset);
|
||||
else
|
||||
|
|
|
@ -775,7 +775,6 @@ ComplexPairTy ComplexExprEmitter::EmitBinDiv(const BinOpInfo &Op) {
|
|||
if (!LHSi)
|
||||
LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType());
|
||||
|
||||
StringRef LibCallName;
|
||||
switch (LHSr->getType()->getTypeID()) {
|
||||
default:
|
||||
llvm_unreachable("Unsupported floating point type!");
|
||||
|
|
|
@ -6886,7 +6886,6 @@ void CGOpenMPRuntime::emitTargetCall(CodeGenFunction &CGF,
|
|||
for (CapturedStmt::const_capture_iterator CI = CS.capture_begin(),
|
||||
CE = CS.capture_end();
|
||||
CI != CE; ++CI, ++RI, ++CV) {
|
||||
StringRef Name;
|
||||
QualType Ty;
|
||||
|
||||
CurBasePointers.clear();
|
||||
|
|
|
@ -4778,7 +4778,6 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
|
|||
unsigned Alignment;
|
||||
std::string GC;
|
||||
GlobalValue::UnnamedAddr UnnamedAddr = GlobalValue::UnnamedAddr::None;
|
||||
LocTy UnnamedAddrLoc;
|
||||
Constant *Prefix = nullptr;
|
||||
Constant *Prologue = nullptr;
|
||||
Constant *PersonalityFn = nullptr;
|
||||
|
@ -5572,7 +5571,6 @@ bool LLParser::ParseCatchRet(Instruction *&Inst, PerFunctionState &PFS) {
|
|||
/// ::= 'catchswitch' within Parent
|
||||
bool LLParser::ParseCatchSwitch(Instruction *&Inst, PerFunctionState &PFS) {
|
||||
Value *ParentPad;
|
||||
LocTy BBLoc;
|
||||
|
||||
if (ParseToken(lltok::kw_within, "expected 'within' after catchswitch"))
|
||||
return true;
|
||||
|
|
|
@ -3908,7 +3908,6 @@ void SelectionDAGLegalize::ConvertNodeToLibcall(SDNode *Node) {
|
|||
DEBUG(dbgs() << "Trying to convert node to libcall\n");
|
||||
SmallVector<SDValue, 8> Results;
|
||||
SDLoc dl(Node);
|
||||
SDValue Tmp1, Tmp2, Tmp3, Tmp4;
|
||||
unsigned Opc = Node->getOpcode();
|
||||
switch (Opc) {
|
||||
case ISD::ATOMIC_FENCE: {
|
||||
|
|
|
@ -1955,7 +1955,7 @@ SDValue DAGTypeLegalizer::SplitVecOp_MSCATTER(MaskedScatterSDNode *N,
|
|||
else
|
||||
std::tie(IndexLo, IndexHi) = DAG.SplitVector(Index, DL);
|
||||
|
||||
SDValue Lo, Hi;
|
||||
SDValue Lo;
|
||||
MachineMemOperand *MMO = DAG.getMachineFunction().
|
||||
getMachineMemOperand(N->getPointerInfo(),
|
||||
MachineMemOperand::MOStore, LoMemVT.getStoreSize(),
|
||||
|
|
|
@ -3617,7 +3617,6 @@ bool AsmParser::parseDirectiveCVInlineSiteId() {
|
|||
/// optional items are .loc sub-directives.
|
||||
bool AsmParser::parseDirectiveCVLoc() {
|
||||
SMLoc DirectiveLoc = getTok().getLoc();
|
||||
SMLoc Loc;
|
||||
int64_t FunctionId, FileNumber;
|
||||
if (parseCVFunctionId(FunctionId, ".cv_loc") ||
|
||||
parseCVFileId(FileNumber, ".cv_loc"))
|
||||
|
|
|
@ -488,7 +488,6 @@ bool ELFAsmParser::ParseSectionArguments(bool IsPush, SMLoc loc) {
|
|||
unsigned Flags = 0;
|
||||
const MCExpr *Subsection = nullptr;
|
||||
bool UseLastGroup = false;
|
||||
StringRef UniqueStr;
|
||||
MCSymbolELF *Associated = nullptr;
|
||||
int64_t UniqueID = ~0;
|
||||
|
||||
|
|
|
@ -91,8 +91,6 @@ formatv_object_base::parseReplacementItem(StringRef Spec) {
|
|||
|
||||
std::pair<ReplacementItem, StringRef>
|
||||
formatv_object_base::splitLiteralAndReplacement(StringRef Fmt) {
|
||||
StringRef Rep;
|
||||
StringRef Remainder;
|
||||
std::size_t From = 0;
|
||||
while (From < Fmt.size() && From != StringRef::npos) {
|
||||
std::size_t BO = Fmt.find_first_of('{', From);
|
||||
|
|
|
@ -689,7 +689,7 @@ void AArch64AppleInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
|
|||
StringRef Annot,
|
||||
const MCSubtargetInfo &STI) {
|
||||
unsigned Opcode = MI->getOpcode();
|
||||
StringRef Layout, Mnemonic;
|
||||
StringRef Layout;
|
||||
|
||||
bool IsTbx;
|
||||
if (isTblTbxInstruction(MI->getOpcode(), Layout, IsTbx)) {
|
||||
|
|
|
@ -1319,7 +1319,6 @@ bool HexagonDAGToDAGISel::DetectUseSxtw(SDValue &N, SDValue &R) {
|
|||
|
||||
if (N.getValueType() != MVT::i64)
|
||||
return false;
|
||||
EVT SrcVT;
|
||||
unsigned Opc = N.getOpcode();
|
||||
switch (Opc) {
|
||||
case ISD::SIGN_EXTEND:
|
||||
|
|
|
@ -978,7 +978,6 @@ bool HexagonTargetLowering::getPostIndexedAddressParts(SDNode *N, SDNode *Op,
|
|||
SelectionDAG &DAG) const
|
||||
{
|
||||
EVT VT;
|
||||
SDValue Ptr;
|
||||
|
||||
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
||||
VT = LD->getMemoryVT();
|
||||
|
|
|
@ -579,8 +579,6 @@ bool PPCDAGToDAGISel::tryBitfieldInsert(SDNode *N) {
|
|||
|
||||
unsigned MB, ME;
|
||||
if (isRunOfOnes(InsertMask, MB, ME)) {
|
||||
SDValue Tmp1, Tmp2;
|
||||
|
||||
if ((Op1Opc == ISD::SHL || Op1Opc == ISD::SRL) &&
|
||||
isInt32Immediate(Op1.getOperand(1), Value)) {
|
||||
Op1 = Op1.getOperand(0);
|
||||
|
|
|
@ -2396,7 +2396,6 @@ template <class ELFT> void ELFDumper<ELFT>::printStackMap() const {
|
|||
if (!StackMapSection)
|
||||
return;
|
||||
|
||||
StringRef StackMapContents;
|
||||
ArrayRef<uint8_t> StackMapContentsArray =
|
||||
unwrapOrError(Obj->getSectionContents(StackMapSection));
|
||||
|
||||
|
|
|
@ -535,7 +535,6 @@ TEST_F(BinaryStreamTest, StreamReaderEnum) {
|
|||
|
||||
BinaryStreamReader Reader(*Stream.Input);
|
||||
|
||||
ArrayRef<MyEnum> Array;
|
||||
FixedStreamArray<MyEnum> FSA;
|
||||
|
||||
for (size_t I = 0; I < Enums.size(); ++I) {
|
||||
|
|
Loading…
Reference in New Issue