summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-11-03 18:11:22 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-11-03 18:11:22 +0000
commitebbbb8126678c027e1f6bfa9c34f3470a2f81b89 (patch)
tree08489508b012b15d355df631e076b1966f764a99 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent666e23b513d5782d13152b53a19df93eba87cd0a (diff)
downloadbcm5719-llvm-ebbbb8126678c027e1f6bfa9c34f3470a2f81b89.tar.gz
bcm5719-llvm-ebbbb8126678c027e1f6bfa9c34f3470a2f81b89.zip
[refactor][extract] insert semicolons into extracted/inserted code
when needed This commit implements the semicolon insertion logic into the extract refactoring. The following rules are used: - extracting expression: add terminating ';' to the extracted function. - extracting statements that don't require terminating ';' (e.g. switch): add terminating ';' to the callee. - extracting statements with ';': move (if possible) the original ';' from the callee and add terminating ';'. - otherwise, add ';' to both places. Differential Revision: https://reviews.llvm.org/D39441 llvm-svn: 317343
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud