summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-01-14 20:43:11 +0000
committerRui Ueyama <ruiu@google.com>2016-01-14 20:43:11 +0000
commitc58a06d7394925b95fa0f3d7d96b3629c92cd4c7 (patch)
tree4d876bc5abaa0fc865c584315e813f284b6d743e /clang/lib/CodeGen/CodeGenFunction.cpp
parent682aeea9deec8f2646fe83e030e5fe1cad9a9f82 (diff)
downloadbcm5719-llvm-c58a06d7394925b95fa0f3d7d96b3629c92cd4c7.tar.gz
bcm5719-llvm-c58a06d7394925b95fa0f3d7d96b3629c92cd4c7.zip
[Support] Rename RoundUpToAlignment -> alignTo.
Rounding up an integer m to a nearest multiple of n where n is a power of 2 is used very often if you are writing code to emit binary files. RoundUpToAlignment is a small function to do that. But we found that the function has a small but annoying issue; the name is a bit too long. Because it is used quite often, that hurts readability. This patch is to rename the function. The original name is kept as a forwarder, so that submitting this patch won't immediately break Clang and other LLVM projects. Once I update all occurrences of RoundUpToAlignment, I'll remove the old name entirely. http://reviews.llvm.org/D16162 llvm-svn: 257799
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud