diff options
| author | Fangrui Song <maskray@google.com> | 2019-04-29 05:38:22 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-04-29 05:38:22 +0000 |
| commit | b521d1b8879c94cafb67e9bacb1f85c42e35e22c (patch) | |
| tree | 37495bccd6869b031462bdef21e21238e94ea603 /llvm/test/tools | |
| parent | 43a015ab8180d89d9507a2949124f30914dbf145 (diff) | |
| download | bcm5719-llvm-b521d1b8879c94cafb67e9bacb1f85c42e35e22c.tar.gz bcm5719-llvm-b521d1b8879c94cafb67e9bacb1f85c42e35e22c.zip | |
[llvm-nm] Simplify and fix a buffer overflow
* char SymbolAddrStr[18] can't hold "%" PRIo64 which may need 22 characters.
* Use range-based for
* Delete unnecessary typedef
* format(...).print(Str, sizeof(Str)) + outs() << Str => outs() << format(...)
* Use cascading outs() << .. << ..
* Use iterator_range(Container &&c)
* (A & B) == B => A & B if B is a power of 2
* replace null sentinel in constants with makeArrayRef
llvm-svn: 359416
Diffstat (limited to 'llvm/test/tools')
0 files changed, 0 insertions, 0 deletions

