Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: src/IceGlobalContext.cpp

Issue 1860473002: Subzero. Refactors Switch Lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: git pull Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceInst.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceInst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698