OSDN Git Service

1. Remove dead code (lshift function).
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Feb 2007 18:38:44 +0000 (18:38 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Feb 2007 18:38:44 +0000 (18:38 +0000)
commitaf0e956cefa4a7ed0c252f26a311a62cb961bb62
treed23ad2b9634165d129459f40c86378b0b5080d0a
parentf2c521c58d3652e187d677d048eeb3c6e7e98520
1. Remove dead code (lshift function).
2. Consolidate memory allocation into just two inline functions.
3. Convert "unsigned" to uint32_t to gaurantee its size.
4. Eliminate magic constants and replace with symbolic equivalent.
5. Improve code documentation slightly.
6. Simplify the logical operator code because bitwidths must be the same.
7. Fix indentation per coding standards.
8. Use exit-early style to reduce indentation in several functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34389 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp