From 488cb137a98201afc20a29a389a61f87bda69020 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 23 Jul 2016 07:50:05 +0000 Subject: [PATCH] Fix a GCC error due to this member name also being a type name. This should fix the build with GCC 4.9 at least. Not sure if this is the right name or fix, but I've followed up on the original commit. llvm-svn: 276522 --- llvm/lib/Target/AArch64/AArch64TargetMachine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp index 605fb57..6107e6c 100644 --- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp @@ -198,13 +198,13 @@ AArch64TargetMachine::~AArch64TargetMachine() {} namespace { struct AArch64GISelActualAccessor : public GISelAccessor { std::unique_ptr CallLoweringInfo; - std::unique_ptr MachineLegalizer; + std::unique_ptr Legalizer; std::unique_ptr RegBankInfo; const CallLowering *getCallLowering() const override { return CallLoweringInfo.get(); } const class MachineLegalizer *getMachineLegalizer() const override { - return MachineLegalizer.get(); + return Legalizer.get(); } const RegisterBankInfo *getRegBankInfo() const override { return RegBankInfo.get(); @@ -240,7 +240,7 @@ AArch64TargetMachine::getSubtargetImpl(const Function &F) const { new AArch64GISelActualAccessor(); GISel->CallLoweringInfo.reset( new AArch64CallLowering(*I->getTargetLowering())); - GISel->MachineLegalizer.reset(new AArch64MachineLegalizer()); + GISel->Legalizer.reset(new AArch64MachineLegalizer()); GISel->RegBankInfo.reset( new AArch64RegisterBankInfo(*I->getRegisterInfo())); #endif -- 2.7.4