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

Issue 1780463004: PNaCl: ExpandTls: Simplify by using a C++11 lambda function (Closed)

Created:
4 years, 9 months ago by Mark Seaborn
Modified:
4 years, 9 months ago
Reviewers:
Sean Klein
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-llvm@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

PNaCl: ExpandTls: Simplify by using a C++11 lambda function Now that we can use C++11 lambdas, we can define addVarToTlsTemplate() as a local function rather than using a class (PassState). Since padToAlignment() only had one call site now, we can inline it into addVarToTlsTemplate(). BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=4351 TEST=test/Transforms/NaCl/expand-tls*.ll R=smklein@chromium.org Committed: https://chromium.googlesource.com/native_client/pnacl-llvm/+/82bce97f9aba25c29d5a33773fb9945d6ff7c3de

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -60 lines) Patch
M lib/Transforms/NaCl/ExpandTls.cpp View 1 4 chunks +35 lines, -60 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Mark Seaborn
4 years, 9 months ago (2016-03-10 16:36:31 UTC) #2
Sean Klein
lgtm
4 years, 9 months ago (2016-03-10 17:20:42 UTC) #3
Mark Seaborn
4 years, 9 months ago (2016-03-11 07:30:09 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
82bce97f9aba25c29d5a33773fb9945d6ff7c3de (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698