aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Nacke <kai@redstar.de>2022-08-10 22:47:30 -0400
committerKai Nacke <kai@redstar.de>2022-11-13 11:07:42 -0500
commitb56707a0a5958b2ef19139931ed720fe9963450a (patch)
tree5c1052448de0cc4902e4baed41029df69f515db9
parent1a33ecbb6b86dd58c73de677addcdadd6e736008 (diff)
downloadllvm-b56707a0a5958b2ef19139931ed720fe9963450a.zip
llvm-b56707a0a5958b2ef19139931ed720fe9963450a.tar.gz
llvm-b56707a0a5958b2ef19139931ed720fe9963450a.tar.bz2
[m88k] Fix warning: getValue() -> value()
-rw-r--r--llvm/lib/Target/M88k/AsmParser/M88kAsmParser.cpp4
-rw-r--r--llvm/lib/Target/M88k/M88kTargetMachine.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/M88k/AsmParser/M88kAsmParser.cpp b/llvm/lib/Target/M88k/AsmParser/M88kAsmParser.cpp
index 68be0c7..65e59b3 100644
--- a/llvm/lib/Target/M88k/AsmParser/M88kAsmParser.cpp
+++ b/llvm/lib/Target/M88k/AsmParser/M88kAsmParser.cpp
@@ -441,7 +441,7 @@ OperandMatchResultTy M88kAsmParser::parseBitField(OperandVector &Operands) {
}
if (Lexer.isNot(AsmToken::Less)) {
if (WidthTok)
- Lexer.UnLex(WidthTok.getValue());
+ Lexer.UnLex(WidthTok.value());
return MatchOperand_NoMatch;
}
Parser.Lex();
@@ -477,7 +477,7 @@ OperandMatchResultTy M88kAsmParser::parseBFWidth(OperandVector &Operands) {
}
if (Lexer.isNot(AsmToken::Less)) {
if (WidthTok)
- Lexer.UnLex(WidthTok.getValue());
+ Lexer.UnLex(WidthTok.value());
return MatchOperand_NoMatch;
}
diff --git a/llvm/lib/Target/M88k/M88kTargetMachine.cpp b/llvm/lib/Target/M88k/M88kTargetMachine.cpp
index 6c51512..a93174f 100644
--- a/llvm/lib/Target/M88k/M88kTargetMachine.cpp
+++ b/llvm/lib/Target/M88k/M88kTargetMachine.cpp
@@ -89,7 +89,7 @@ std::string computeDataLayout(const Triple &TT, StringRef CPU, StringRef FS) {
// TODO: Check.
Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) {
- if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC)
+ if (!RM || *RM == Reloc::DynamicNoPIC)
return Reloc::Static;
return *RM;
}