Move get[S|U]LEB128Size() to LEB128.h.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Sat, 22 Feb 2014 14:00:39 +0000 (14:00 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Sat, 22 Feb 2014 14:00:39 +0000 (14:00 +0000)
commit80668d18e8064560bb6c227cde4e2a01d32e683e
tree69fab20851cfdff7e1f0d2ee797e0cfe97809cee
parentfb24ccfa32c12dc7ab12b70f2c3db404dbab7581
Move get[S|U]LEB128Size() to LEB128.h.

This commit moves getSLEB128Size() and getULEB128Size() from
MCAsmInfo to LEB128.h and removes some copy-and-paste code.

Besides, this commit also adds some unit tests for the LEB128
functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201937 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmInfo.h
include/llvm/Support/LEB128.h
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfException.cpp
lib/MC/MCAsmInfo.cpp
lib/MC/MCDwarf.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
unittests/Support/CMakeLists.txt
unittests/Support/LEB128Test.cpp [new file with mode: 0644]