mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-30 16:34:03 +00:00
[Hexagon] Fixing warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24a89ad9eb
commit
e729adbfcd
@ -87,8 +87,6 @@ class HexagonAsmParser : public MCTargetAsmParser {
|
|||||||
MCAssembler *getAssembler() const { return Assembler; }
|
MCAssembler *getAssembler() const { return Assembler; }
|
||||||
MCAsmLexer &getLexer() const { return Parser.getLexer(); }
|
MCAsmLexer &getLexer() const { return Parser.getLexer(); }
|
||||||
|
|
||||||
unsigned ArchVersion;
|
|
||||||
|
|
||||||
bool equalIsAsmAssignment() override { return false; }
|
bool equalIsAsmAssignment() override { return false; }
|
||||||
bool isLabel(AsmToken &Token) override;
|
bool isLabel(AsmToken &Token) override;
|
||||||
|
|
||||||
@ -1190,7 +1188,7 @@ bool HexagonAsmParser::isLabel(AsmToken &Token) {
|
|||||||
return true;
|
return true;
|
||||||
if (!MatchRegisterName(String.lower()))
|
if (!MatchRegisterName(String.lower()))
|
||||||
return true;
|
return true;
|
||||||
assert(Second.is(AsmToken::Colon));
|
assert(Second.is(AsmToken::Colon)); (void)Second;
|
||||||
StringRef Raw (String.data(), Third.getString().data() - String.data() +
|
StringRef Raw (String.data(), Third.getString().data() - String.data() +
|
||||||
Third.getString().size());
|
Third.getString().size());
|
||||||
std::string Collapsed = Raw;
|
std::string Collapsed = Raw;
|
||||||
@ -1566,7 +1564,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
|
|||||||
MCOperand &MO = Inst.getOperand(2);
|
MCOperand &MO = Inst.getOperand(2);
|
||||||
int64_t Value;
|
int64_t Value;
|
||||||
bool Success = MO.getExpr()->evaluateAsAbsolute(Value);
|
bool Success = MO.getExpr()->evaluateAsAbsolute(Value);
|
||||||
assert(Success && "Assured by matcher");
|
assert(Success && "Assured by matcher"); (void)Success;
|
||||||
if (Value == 0) {
|
if (Value == 0) {
|
||||||
MCInst TmpInst;
|
MCInst TmpInst;
|
||||||
MCOperand &Pd = Inst.getOperand(0);
|
MCOperand &Pd = Inst.getOperand(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user