1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

ARC, Nios2: Silence build warnings. NFCI.

llvm-svn: 332663
This commit is contained in:
Peter Collingbourne 2018-05-17 20:46:01 +00:00
parent 9905fda249
commit ae9a841247
7 changed files with 5 additions and 12 deletions

View File

@ -72,7 +72,7 @@ static ARCCC::CondCode ISDCCtoARCCC(ISD::CondCode isdCC) {
ARCTargetLowering::ARCTargetLowering(const TargetMachine &TM,
const ARCSubtarget &Subtarget)
: TargetLowering(TM), TM(TM), Subtarget(Subtarget) {
: TargetLowering(TM), Subtarget(Subtarget) {
// Set up the register classes.
addRegisterClass(MVT::i32, &ARC::GPR32RegClass);

View File

@ -76,7 +76,6 @@ public:
Instruction *I = nullptr) const override;
private:
const TargetMachine &TM;
const ARCSubtarget &Subtarget;
// Lower Operand helpers

View File

@ -25,16 +25,15 @@ class ARCFunctionInfo : public MachineFunctionInfo {
virtual void anchor();
bool ReturnStackOffsetSet;
int VarArgsFrameIndex;
unsigned VarArgFrameBytes;
unsigned ReturnStackOffset;
public:
ARCFunctionInfo()
: ReturnStackOffsetSet(false), VarArgsFrameIndex(0), VarArgFrameBytes(0),
: ReturnStackOffsetSet(false), VarArgsFrameIndex(0),
ReturnStackOffset(-1U), MaxCallStackReq(0) {}
explicit ARCFunctionInfo(MachineFunction &MF)
: ReturnStackOffsetSet(false), VarArgsFrameIndex(0), VarArgFrameBytes(0),
: ReturnStackOffsetSet(false), VarArgsFrameIndex(0),
ReturnStackOffset(-1U), MaxCallStackReq(0) {
// Functions are 4-byte (2**2) aligned.
MF.setAlignment(2);

View File

@ -43,9 +43,8 @@ static const char *ARCBRCondCodeToString(ARCCC::BRCondCode BRCC) {
return "lo";
case ARCCC::BRHS:
return "hs";
default:
llvm_unreachable("Unhandled ARCCC::BRCondCode");
}
llvm_unreachable("Unhandled ARCCC::BRCondCode");
}
static const char *ARCCondCodeToString(ARCCC::CondCode CC) {

View File

@ -19,4 +19,4 @@ Nios2TargetStreamer::Nios2TargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {}
Nios2TargetAsmStreamer::Nios2TargetAsmStreamer(MCStreamer &S,
formatted_raw_ostream &OS)
: Nios2TargetStreamer(S), OS(OS) {}
: Nios2TargetStreamer(S) {}

View File

@ -16,8 +16,6 @@
namespace llvm {
class Nios2TargetObjectFile : public TargetLoweringObjectFileELF {
const Nios2TargetMachine *TM;
public:
Nios2TargetObjectFile() : TargetLoweringObjectFileELF() {}

View File

@ -22,8 +22,6 @@ public:
// This part is for ascii assembly output
class Nios2TargetAsmStreamer : public Nios2TargetStreamer {
formatted_raw_ostream &OS;
public:
Nios2TargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS);
};