[llvm] r368162 - [mips] Make a couple of class methods plain static functions. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 05:21:41 PDT 2019
Author: atanasyan
Date: Wed Aug 7 05:21:41 2019
New Revision: 368162
URL: http://llvm.org/viewvc/llvm-project?rev=368162&view=rev
Log:
[mips] Make a couple of class methods plain static functions. NFC
Modified:
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
llvm/trunk/lib/Target/Mips/MipsTargetStreamer.h
Modified: llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp?rev=368162&r1=368161&r2=368162&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp Wed Aug 7 05:21:41 2019
@@ -34,6 +34,15 @@ static cl::opt<bool> RoundSectionSizes(
cl::desc("Round section sizes up to the section alignment"), cl::Hidden);
} // end anonymous namespace
+static bool isMipsR6(const MCSubtargetInfo *STI) {
+ return STI->getFeatureBits()[Mips::FeatureMips32r6] ||
+ STI->getFeatureBits()[Mips::FeatureMips64r6];
+}
+
+static bool isMicroMips(const MCSubtargetInfo *STI) {
+ return STI->getFeatureBits()[Mips::FeatureMicroMips];
+}
+
MipsTargetStreamer::MipsTargetStreamer(MCStreamer &S)
: MCTargetStreamer(S), GPReg(Mips::GP), ModuleDirectiveAllowed(true) {
GPRInfoSet = FPRInfoSet = FrameInfoSet = false;
@@ -430,15 +439,6 @@ void MipsTargetStreamer::emitLoadWithSym
emitRRX(Opcode, DstReg, TmpReg, LoOperand, IDLoc, STI);
}
-bool MipsTargetStreamer::isMipsR6(const MCSubtargetInfo *STI) const {
- return STI->getFeatureBits()[Mips::FeatureMips32r6] ||
- STI->getFeatureBits()[Mips::FeatureMips64r6];
-}
-
-bool MipsTargetStreamer::isMicroMips(const MCSubtargetInfo *STI) const {
- return STI->getFeatureBits()[Mips::FeatureMicroMips];
-}
-
MipsTargetAsmStreamer::MipsTargetAsmStreamer(MCStreamer &S,
formatted_raw_ostream &OS)
: MipsTargetStreamer(S), OS(OS) {}
Modified: llvm/trunk/lib/Target/Mips/MipsTargetStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetStreamer.h?rev=368162&r1=368161&r2=368162&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetStreamer.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetStreamer.h Wed Aug 7 05:21:41 2019
@@ -191,9 +191,6 @@ public:
return *ABI;
}
- bool isMipsR6(const MCSubtargetInfo *STI) const;
- bool isMicroMips(const MCSubtargetInfo *STI) const;
-
protected:
llvm::Optional<MipsABIInfo> ABI;
MipsABIFlagsSection ABIFlagsSection;
More information about the llvm-commits
mailing list