Skip to content

Commit 2c394bd

Browse files
committed
[PowerPC] Avoid unused variable warning in Release builds
PPCFrameLowering.cpp:632:8: warning: unused variable 'isAIXABI' [-Wunused-variable]
1 parent 323d08e commit 2c394bd

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

llvm/lib/Target/PowerPC/PPCFrameLowering.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ EnablePEVectorSpills("ppc-enable-pe-vector-spills",
3939
cl::desc("Enable spills in prologue to vector registers."),
4040
cl::init(false), cl::Hidden);
4141

42-
/// VRRegNo - Map from a numbered VR register to its enum value.
43-
///
44-
static const MCPhysReg VRRegNo[] = {
45-
PPC::V0 , PPC::V1 , PPC::V2 , PPC::V3 , PPC::V4 , PPC::V5 , PPC::V6 , PPC::V7 ,
46-
PPC::V8 , PPC::V9 , PPC::V10, PPC::V11, PPC::V12, PPC::V13, PPC::V14, PPC::V15,
47-
PPC::V16, PPC::V17, PPC::V18, PPC::V19, PPC::V20, PPC::V21, PPC::V22, PPC::V23,
48-
PPC::V24, PPC::V25, PPC::V26, PPC::V27, PPC::V28, PPC::V29, PPC::V30, PPC::V31
49-
};
50-
5142
static unsigned computeReturnSaveOffset(const PPCSubtarget &STI) {
5243
if (STI.isAIXABI())
5344
return STI.isPPC64() ? 16 : 8;
@@ -629,9 +620,8 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF,
629620
bool isPPC64 = Subtarget.isPPC64();
630621
// Get the ABI.
631622
bool isSVR4ABI = Subtarget.isSVR4ABI();
632-
bool isAIXABI = Subtarget.isAIXABI();
633623
bool isELFv2ABI = Subtarget.isELFv2ABI();
634-
assert((isSVR4ABI || isAIXABI) && "Unsupported PPC ABI.");
624+
assert((isSVR4ABI || Subtarget.isAIXABI()) && "Unsupported PPC ABI.");
635625

636626
// Work out frame sizes.
637627
unsigned FrameSize = determineFrameLayoutAndUpdate(MF);

0 commit comments

Comments
 (0)