summaryrefslogtreecommitdiff
path: root/tools/llvm-bcanalyzer
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-01 18:45:54 +0000
committerDan Gohman <gohman@apple.com>2009-04-01 18:45:54 +0000
commitde551f91d8816632a76a065084caab9fab6aacff (patch)
treefaf864647d57a6d0f3e6e16f199b0559be489e5f /tools/llvm-bcanalyzer
parentef66abeaeef425927821ddc331d5c14138efe258 (diff)
downloadllvm-de551f91d8816632a76a065084caab9fab6aacff.tar.gz
llvm-de551f91d8816632a76a065084caab9fab6aacff.tar.bz2
llvm-de551f91d8816632a76a065084caab9fab6aacff.tar.xz
Use CHAR_BIT instead of hard-coding 8 in several places where it
is appropriate. This helps visually differentiate host-oriented calculations from target-oriented calculations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-bcanalyzer')
-rw-r--r--tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
index 623bcaeae7..52a198ae79 100644
--- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
+++ b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
@@ -425,7 +425,7 @@ static int AnalyzeBitcode() {
if (Dump) std::cerr << "\n\n";
- uint64_t BufferSizeBits = Buffer->getBufferSize()*8;
+ uint64_t BufferSizeBits = Buffer->getBufferSize()*CHAR_BIT;
// Print a summary of the read file.
std::cerr << "Summary of " << InputFilename << ":\n";
std::cerr << " Total size: ";