diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-03-02 01:36:45 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-03-02 01:36:45 +0000 |
commit | 43766d6f1274decc804b3f3a32e1bb2b127d2f7a (patch) | |
tree | a452b4f7fcc76b06979511c293a073f938711ddd /clang/lib/Basic/IdentifierTable.cpp | |
parent | 7290868a1ba52b5b82b4c30807301b63b2b14cf1 (diff) | |
download | llvm-43766d6f1274decc804b3f3a32e1bb2b127d2f7a.zip llvm-43766d6f1274decc804b3f3a32e1bb2b127d2f7a.tar.gz llvm-43766d6f1274decc804b3f3a32e1bb2b127d2f7a.tar.bz2 |
Add two utility functions to lldbutil.py:
o int_to_bytearray()
o bytearray_to_int()
They return/interpret the bytearray in the little endian format.
For big endian, simply perform ba.reverse() on the bytearray object.
And modify TestProcessAPI.py to take advantage of the functions.
llvm-svn: 126813
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
0 files changed, 0 insertions, 0 deletions