diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-04 00:03:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-04 00:03:30 +0000 |
commit | 7a1767520611d9ff6face702068de858e1cadf2c (patch) | |
tree | 84849800c5f0e86af2757f911bc65010e016259e /lib/AsmParser/ParserInternals.h | |
parent | e9bb2df410f7a22decad9a883f7139d5857c1520 (diff) |
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
Diffstat (limited to 'lib/AsmParser/ParserInternals.h')
-rw-r--r-- | lib/AsmParser/ParserInternals.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h index b05bb0ddac..750833fae8 100644 --- a/lib/AsmParser/ParserInternals.h +++ b/lib/AsmParser/ParserInternals.h @@ -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(); |