diff options
author | Richard Trieu <rtrieu@google.com> | 2018-12-29 02:02:13 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-12-29 02:02:13 +0000 |
commit | a87b70d1db817b34f9ef7f4312094da46b575205 (patch) | |
tree | 3ec390b0fb12fdcdaa3f8686d400e6cf15266058 /llvm/lib/CodeGen | |
parent | 0a6cec6f9f1bd11147eb76d8d0b4df9d40bb873c (diff) | |
download | bcm5719-llvm-a87b70d1db817b34f9ef7f4312094da46b575205.tar.gz bcm5719-llvm-a87b70d1db817b34f9ef7f4312094da46b575205.zip |
Add vtable anchor to classes.
llvm-svn: 350142
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/CallLowering.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp index da972eae756..724ecedf3b3 100644 --- a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp +++ b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp @@ -23,6 +23,8 @@ using namespace llvm; +void CallLowering::anchor() {} + bool CallLowering::lowerCall( MachineIRBuilder &MIRBuilder, ImmutableCallSite CS, unsigned ResReg, ArrayRef<unsigned> ArgRegs, std::function<unsigned()> GetCalleeReg) const { @@ -180,3 +182,5 @@ unsigned CallLowering::ValueHandler::extendRegister(unsigned ValReg, } llvm_unreachable("unable to extend register"); } + +void CallLowering::ValueHandler::anchor() {} diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3ae7bd90554..2f26a150b50 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -87,6 +87,8 @@ static SDVTList makeVTList(const EVT *VTs, unsigned NumVTs) { void SelectionDAG::DAGUpdateListener::NodeDeleted(SDNode*, SDNode*) {} void SelectionDAG::DAGUpdateListener::NodeUpdated(SDNode*) {} +void SelectionDAG::DAGNodeDeletedListener::anchor() {} + #define DEBUG_TYPE "selectiondag" static cl::opt<bool> EnableMemCpyDAGOpt("enable-memcpy-dag-opt", |