mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Minor cleanups
llvm-svn: 9079
This commit is contained in:
parent
20cebd6ccb
commit
0ad8f7bb8f
@ -234,13 +234,13 @@ void BytecodeParser::ParseSymbolTable(const unsigned char *&Buf,
|
|||||||
BCR_TRACE(3, "Plane Type: '" << *Ty << "' with " << NumEntries <<
|
BCR_TRACE(3, "Plane Type: '" << *Ty << "' with " << NumEntries <<
|
||||||
" entries\n");
|
" entries\n");
|
||||||
|
|
||||||
for (unsigned i = 0; i < NumEntries; ++i) {
|
for (unsigned i = 0; i != NumEntries; ++i) {
|
||||||
// Symtab entry: [def slot #][name]
|
// Symtab entry: [def slot #][name]
|
||||||
unsigned slot;
|
unsigned slot;
|
||||||
if (read_vbr(Buf, EndBuf, slot)) throw Error_readvbr;
|
if (read_vbr(Buf, EndBuf, slot)) throw Error_readvbr;
|
||||||
std::string Name;
|
std::string Name;
|
||||||
if (read(Buf, EndBuf, Name, false)) // Not aligned...
|
if (read(Buf, EndBuf, Name, false)) // Not aligned...
|
||||||
throw std::string("Buffer not aligned.");
|
throw std::string("Failed reading symbol name.");
|
||||||
|
|
||||||
Value *V = 0;
|
Value *V = 0;
|
||||||
if (Typ == Type::TypeTyID)
|
if (Typ == Type::TypeTyID)
|
||||||
|
Loading…
Reference in New Issue
Block a user