Ignore:
Timestamp:
Jul 13, 2015, 2:11:13 PM (4 years ago)
Author:
cameron
Message:

Upgrade LLVM to 3.6.1

Location:
icGREP/icgrep-devel/llvm-3.6.1.src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/llvm-3.6.1.src/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

    r4574 r4664  
    36683668  }
    36693669
    3670   if (Lexer.is(AsmToken::Identifier)) {
    3671     StringRef Option = Parser.getTok().getString();
    3672     Parser.Lex();
    3673 
    3674     if (Option == "oddspreg") {
    3675       getTargetStreamer().emitDirectiveModuleOddSPReg(true, isABI_O32());
    3676       clearFeatureBits(Mips::FeatureNoOddSPReg, "nooddspreg");
    3677 
    3678       if (getLexer().isNot(AsmToken::EndOfStatement)) {
    3679         reportParseError("unexpected token, expected end of statement");
    3680         return false;
    3681       }
    3682 
    3683       return false;
    3684     } else if (Option == "nooddspreg") {
    3685       if (!isABI_O32()) {
    3686         Error(L, "'.module nooddspreg' requires the O32 ABI");
    3687         return false;
    3688       }
    3689 
    3690       getTargetStreamer().emitDirectiveModuleOddSPReg(false, isABI_O32());
    3691       setFeatureBits(Mips::FeatureNoOddSPReg, "nooddspreg");
    3692 
    3693       if (getLexer().isNot(AsmToken::EndOfStatement)) {
    3694         reportParseError("unexpected token, expected end of statement");
    3695         return false;
    3696       }
    3697 
    3698       return false;
    3699     } else if (Option == "fp") {
    3700       return parseDirectiveModuleFP();
    3701     }
    3702 
     3670  StringRef Option;
     3671  if (Parser.parseIdentifier(Option)) {
     3672    reportParseError("expected .module option identifier");
     3673    return false;
     3674  }
     3675
     3676  if (Option == "oddspreg") {
     3677    getTargetStreamer().emitDirectiveModuleOddSPReg(true, isABI_O32());
     3678    clearFeatureBits(Mips::FeatureNoOddSPReg, "nooddspreg");
     3679
     3680    // If this is not the end of the statement, report an error.
     3681    if (getLexer().isNot(AsmToken::EndOfStatement)) {
     3682      reportParseError("unexpected token, expected end of statement");
     3683      return false;
     3684    }
     3685
     3686    return false; // parseDirectiveModule has finished successfully.
     3687  } else if (Option == "nooddspreg") {
     3688    if (!isABI_O32()) {
     3689      Error(L, "'.module nooddspreg' requires the O32 ABI");
     3690      return false;
     3691    }
     3692
     3693    getTargetStreamer().emitDirectiveModuleOddSPReg(false, isABI_O32());
     3694    setFeatureBits(Mips::FeatureNoOddSPReg, "nooddspreg");
     3695
     3696    // If this is not the end of the statement, report an error.
     3697    if (getLexer().isNot(AsmToken::EndOfStatement)) {
     3698      reportParseError("unexpected token, expected end of statement");
     3699      return false;
     3700    }
     3701
     3702    return false; // parseDirectiveModule has finished successfully.
     3703  } else if (Option == "fp") {
     3704    return parseDirectiveModuleFP();
     3705  } else {
    37033706    return Error(L, "'" + Twine(Option) + "' is not a valid .module option.");
    37043707  }
    3705 
    3706   return false;
    37073708}
    37083709
Note: See TracChangeset for help on using the changeset viewer.