mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Reduce code duplication between patchpoint and non-patchpoint lowering. NFC.
This is in preparation for another patch that makes patchpoints invokable. Reviewers: atrick, ributzka Reviewed By: ributzka Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5657 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "llvm/IR/CallSite.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
@@ -644,6 +645,10 @@ public:
|
||||
void UpdateSplitBlock(MachineBasicBlock *First, MachineBasicBlock *Last);
|
||||
|
||||
private:
|
||||
std::pair<SDValue, SDValue> lowerInvokable(
|
||||
TargetLowering::CallLoweringInfo &CLI,
|
||||
MachineBasicBlock *LandingPad);
|
||||
|
||||
// Terminator instructions.
|
||||
void visitRet(const ReturnInst &I);
|
||||
void visitBr(const BranchInst &I);
|
||||
|
Reference in New Issue
Block a user