mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
ARC, Nios2: Silence build warnings. NFCI.
llvm-svn: 332663
This commit is contained in:
parent
9905fda249
commit
ae9a841247
@ -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);
|
||||
|
||||
|
@ -76,7 +76,6 @@ public:
|
||||
Instruction *I = nullptr) const override;
|
||||
|
||||
private:
|
||||
const TargetMachine &TM;
|
||||
const ARCSubtarget &Subtarget;
|
||||
|
||||
// Lower Operand helpers
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
@ -19,4 +19,4 @@ Nios2TargetStreamer::Nios2TargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {}
|
||||
|
||||
Nios2TargetAsmStreamer::Nios2TargetAsmStreamer(MCStreamer &S,
|
||||
formatted_raw_ostream &OS)
|
||||
: Nios2TargetStreamer(S), OS(OS) {}
|
||||
: Nios2TargetStreamer(S) {}
|
||||
|
@ -16,8 +16,6 @@
|
||||
namespace llvm {
|
||||
|
||||
class Nios2TargetObjectFile : public TargetLoweringObjectFileELF {
|
||||
const Nios2TargetMachine *TM;
|
||||
|
||||
public:
|
||||
Nios2TargetObjectFile() : TargetLoweringObjectFileELF() {}
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user