mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
Avoid printing meaningless numbers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b8565e3918
commit
6c51a36371
@ -76,7 +76,7 @@ const Type *BytecodeParser::parseTypeConstant(const unsigned char *&Buf,
|
|||||||
case Type::PointerTyID: {
|
case Type::PointerTyID: {
|
||||||
unsigned ElTyp;
|
unsigned ElTyp;
|
||||||
if (read_vbr(Buf, EndBuf, ElTyp)) return Val;
|
if (read_vbr(Buf, EndBuf, ElTyp)) return Val;
|
||||||
BCR_TRACE(5, "Pointer Type Constant #" << (ElTyp-14) << "\n");
|
BCR_TRACE(5, "Pointer Type Constant #" << ElTyp << "\n");
|
||||||
const Type *ElementType = getType(ElTyp);
|
const Type *ElementType = getType(ElTyp);
|
||||||
if (ElementType == 0) return Val;
|
if (ElementType == 0) return Val;
|
||||||
return PointerType::get(ElementType);
|
return PointerType::get(ElementType);
|
||||||
@ -99,9 +99,6 @@ const Type *BytecodeParser::parseTypeConstant(const unsigned char *&Buf,
|
|||||||
//
|
//
|
||||||
void BytecodeParser::refineAbstractType(const DerivedType *OldType,
|
void BytecodeParser::refineAbstractType(const DerivedType *OldType,
|
||||||
const Type *NewType) {
|
const Type *NewType) {
|
||||||
if (OldType == NewType &&
|
|
||||||
OldType->isAbstract()) return; // Type is modified, but same
|
|
||||||
|
|
||||||
TypeValuesListTy::iterator I = find(FunctionTypeValues.begin(),
|
TypeValuesListTy::iterator I = find(FunctionTypeValues.begin(),
|
||||||
FunctionTypeValues.end(), OldType);
|
FunctionTypeValues.end(), OldType);
|
||||||
if (I == FunctionTypeValues.end()) {
|
if (I == FunctionTypeValues.end()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user