mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Renamed inst_const_iterator -> const_inst_iterator
Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -184,8 +184,8 @@ typedef PlaceholderValue<BBPlaceHolderHelper> BBPlaceHolder;
|
||||
static inline ValID &getValIDFromPlaceHolder(const Value *Val) {
|
||||
const Type *Ty = Val->getType();
|
||||
if (isa<PointerType>(Ty) &&
|
||||
isa<MethodType>(cast<PointerType>(Ty)->getValueType()))
|
||||
Ty = cast<PointerType>(Ty)->getValueType();
|
||||
isa<MethodType>(cast<PointerType>(Ty)->getElementType()))
|
||||
Ty = cast<PointerType>(Ty)->getElementType();
|
||||
|
||||
switch (Ty->getPrimitiveID()) {
|
||||
case Type::LabelTyID: return ((BBPlaceHolder*)Val)->getDef();
|
||||
@ -196,8 +196,8 @@ static inline ValID &getValIDFromPlaceHolder(const Value *Val) {
|
||||
static inline int getLineNumFromPlaceHolder(const Value *Val) {
|
||||
const Type *Ty = Val->getType();
|
||||
if (isa<PointerType>(Ty) &&
|
||||
isa<MethodType>(cast<PointerType>(Ty)->getValueType()))
|
||||
Ty = cast<PointerType>(Ty)->getValueType();
|
||||
isa<MethodType>(cast<PointerType>(Ty)->getElementType()))
|
||||
Ty = cast<PointerType>(Ty)->getElementType();
|
||||
|
||||
switch (Ty->getPrimitiveID()) {
|
||||
case Type::LabelTyID: return ((BBPlaceHolder*)Val)->getLineNum();
|
||||
|
Reference in New Issue
Block a user