diff options
author | Rui Ueyama <ruiu@google.com> | 2016-01-14 20:43:11 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-01-14 20:43:11 +0000 |
commit | c58a06d7394925b95fa0f3d7d96b3629c92cd4c7 (patch) | |
tree | 4d876bc5abaa0fc865c584315e813f284b6d743e /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 682aeea9deec8f2646fe83e030e5fe1cad9a9f82 (diff) | |
download | bcm5719-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/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions