[llvm] r201937 - Move get[S|U]LEB128Size() to LEB128.h.
Rafael EspĂndola
rafael.espindola at gmail.com
Sat Feb 22 06:24:13 PST 2014
> --- llvm/trunk/include/llvm/Support/LEB128.h (original)
> +++ llvm/trunk/include/llvm/Support/LEB128.h Sat Feb 22 08:00:39 2014
> @@ -90,6 +90,31 @@ inline uint64_t decodeULEB128(const uint
> return Value;
> }
>
> +/// Utility function to get the size of the ULEB128-encoded value.
> +inline unsigned getULEB128Size(uint64_t Value) {
> + unsigned Size = 0;
Why inline? Why in Support? ARMELFStreamer.cpp would have been able to
use it from MC.
Cheers,
Rafael
More information about the llvm-commits
mailing list