Chromium Code Reviews
DescriptionPNaCl: 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 #Messages
Total messages: 5 (2 generated)
|