mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Module's are no longer values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd63f25fbd
commit
5240dac674
@ -48,8 +48,6 @@ static const Module *getModuleFromVal(const Value *V) {
|
|||||||
return M ? M->getParent() : 0;
|
return M ? M->getParent() : 0;
|
||||||
} else if (const GlobalValue *GV = dyn_cast<const GlobalValue>(V))
|
} else if (const GlobalValue *GV = dyn_cast<const GlobalValue>(V))
|
||||||
return GV->getParent();
|
return GV->getParent();
|
||||||
else if (const Module *Mod = dyn_cast<const Module>(V))
|
|
||||||
return Mod;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,8 +63,6 @@ static SlotCalculator *createSlotCalculator(const Value *V) {
|
|||||||
return new SlotCalculator(GV->getParent(), true);
|
return new SlotCalculator(GV->getParent(), true);
|
||||||
} else if (const Function *Func = dyn_cast<const Function>(V)) {
|
} else if (const Function *Func = dyn_cast<const Function>(V)) {
|
||||||
return new SlotCalculator(Func, true);
|
return new SlotCalculator(Func, true);
|
||||||
} else if (const Module *Mod = dyn_cast<const Module>(V)) {
|
|
||||||
return new SlotCalculator(Mod, true);
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -901,7 +897,6 @@ CachedWriter &CachedWriter::operator<<(const Value *V) {
|
|||||||
case Value::BasicBlockVal: AW->write(cast<BasicBlock>(V)); break;
|
case Value::BasicBlockVal: AW->write(cast<BasicBlock>(V)); break;
|
||||||
case Value::FunctionVal: AW->write(cast<Function>(V)); break;
|
case Value::FunctionVal: AW->write(cast<Function>(V)); break;
|
||||||
case Value::GlobalVariableVal: AW->write(cast<GlobalVariable>(V)); break;
|
case Value::GlobalVariableVal: AW->write(cast<GlobalVariable>(V)); break;
|
||||||
case Value::ModuleVal: AW->write(cast<Module>(V)); break;
|
|
||||||
default: Out << "<unknown value type: " << V->getValueType() << ">"; break;
|
default: Out << "<unknown value type: " << V->getValueType() << ">"; break;
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user