Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index e7faa506f6e3ea4278a23b260cc22be8a4728dcf..25e1cc6027d11c20984b3072aded9345504d5113 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -872,12 +872,8 @@ JumpTableDataList GlobalContext::getJumpTables() { |
return JumpTables; |
} |
-JumpTableData & |
-GlobalContext::addJumpTable(GlobalString FuncName, SizeT Id, |
- const JumpTableData::TargetList &TargetList) { |
- auto JumpTableList = getJumpTableList(); |
- JumpTableList->emplace_back(FuncName, Id, TargetList); |
- return JumpTableList->back(); |
+void GlobalContext::addJumpTableData(JumpTableData JumpTable) { |
+ getJumpTableList()->emplace_back(std::move(JumpTable)); |
} |
TimerStackIdT GlobalContext::newTimerStackID(const std::string &Name) { |