Chromium Code Reviews| Index: src/IceGlobalContext.cpp |
| diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
| index 51ca3f08240d49b4252358ef2c62389b2c0f05de..b63bef6ff5404c4b5d8c989de0a1f0bd83f6d910 100644 |
| --- a/src/IceGlobalContext.cpp |
| +++ b/src/IceGlobalContext.cpp |
| @@ -385,6 +385,8 @@ void GlobalContext::emitFileHeader() { |
| void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } |
| +void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } |
| + |
| void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { |
| TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); |
| const bool DumpGlobalVariables = BuildDefs::dump() && Flags.getVerbose() && |
| @@ -876,6 +878,13 @@ ConstantList GlobalContext::getConstantExternSyms() { |
| return getConstPool()->ExternRelocatables.getConstantPool(); |
| } |
| +JumpTableData &GlobalContext::addJumpTable(IceString FuncName, SizeT Id, |
| + SizeT NumTargets) { |
| + LockedPtr<std::vector<JumpTableData>> JumpTables = getJumpTables(); |
|
Jim Stichnoth
2015/07/30 19:21:23
JumpTableDataList
Or, use auto, which is already
ascull
2015/07/30 20:39:38
Done.
|
| + JumpTables->emplace_back(FuncName, Id, NumTargets); |
| + return JumpTables->back(); |
| +} |
| + |
| TimerStackIdT GlobalContext::newTimerStackID(const IceString &Name) { |
| if (!BuildDefs::dump()) |
| return 0; |