diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-09-02 18:50:24 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-09-02 18:50:24 +0000 |
commit | ac7cbdc9b14fda3d814d696631aefcb5d41ce726 (patch) | |
tree | 145a9492a78c66bb5510ac98e5bfdbad6e23170a /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 9d412ed41e3bce464fca95355a112e5292df9371 (diff) | |
download | bcm5719-llvm-ac7cbdc9b14fda3d814d696631aefcb5d41ce726.tar.gz bcm5719-llvm-ac7cbdc9b14fda3d814d696631aefcb5d41ce726.zip |
Code review tweaks
llvm-svn: 216931
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index f3367a79599..fbdc0a6c91c 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -1542,15 +1542,15 @@ bool ExportEntry::operator==(const ExportEntry &Other) const { return true; } -uint64_t ExportEntry::readULEB128(const uint8_t *&p) { - unsigned count; - uint64_t result = decodeULEB128(p, &count); - p += count; - if (p > Trie.end()) { - p = Trie.end(); +uint64_t ExportEntry::readULEB128(const uint8_t *&Ptr) { + unsigned Count; + uint64_t Result = decodeULEB128(Ptr, &Count); + Ptr += Count; + if (Ptr > Trie.end()) { + Ptr = Trie.end(); Malformed = true; } - return result; + return Result; } StringRef ExportEntry::name() const { @@ -1616,8 +1616,8 @@ void ExportEntry::pushDownUntilBottom() { NodeState &Top = Stack.back(); CumulativeString.resize(Top.ParentStringLength); for (;*Top.Current != 0; Top.Current++) { - char c = *Top.Current; - CumulativeString.push_back(c); + char C = *Top.Current; + CumulativeString.push_back(C); } Top.Current += 1; uint64_t childNodeIndex = readULEB128(Top.Current); |