Commit c10c1569 by Jim Stichnoth

Re-fix build errors from upgrading to clang 3.9 .

This reverts commit 5526c171 (https://codereview.chromium.org/1778663003) and implements it per jpp's suggestion. BUG= none R=jpp@chromium.org Review URL: https://codereview.chromium.org/1780773003 .
parent 1ece70e8
...@@ -79,10 +79,6 @@ public: ...@@ -79,10 +79,6 @@ public:
~TargetX86Base() override = default; ~TargetX86Base() override = default;
static void staticInit(GlobalContext *Ctx); static void staticInit(GlobalContext *Ctx);
static TargetX86Base *create(Cfg *Func) { return new TargetX86Base(Func); }
std::unique_ptr<::Ice::Assembler> createAssembler() const override {
return nullptr;
}
static FixupKind getPcRelFixup() { return PcRelFixup; } static FixupKind getPcRelFixup() { return PcRelFixup; }
static FixupKind getAbsFixup() { return AbsFixup; } static FixupKind getAbsFixup() { return AbsFixup; }
...@@ -356,17 +352,10 @@ protected: ...@@ -356,17 +352,10 @@ protected:
} }
/// Emit just the call instruction (without argument or return variable /// Emit just the call instruction (without argument or return variable
/// processing), sandboxing if needed. /// processing), sandboxing if needed.
virtual Inst *emitCallToTarget(Operand *CallTarget, Variable *ReturnReg) { virtual Inst *emitCallToTarget(Operand *CallTarget, Variable *ReturnReg) = 0;
(void)CallTarget;
(void)ReturnReg;
return nullptr;
}
/// Materialize the moves needed to return a value of the specified type. /// Materialize the moves needed to return a value of the specified type.
virtual Variable *moveReturnValueToRegister(Operand *Value, Type ReturnType) { virtual Variable *moveReturnValueToRegister(Operand *Value,
(void)Value; Type ReturnType) = 0;
(void)ReturnType;
return nullptr;
}
/// Emit a jump table to the constant pool. /// Emit a jump table to the constant pool.
void emitJumpTable(const Cfg *Func, void emitJumpTable(const Cfg *Func,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment