forked from OSchip/llvm-project
Remove CastKind typedef from CastExpr since CastKind is in the clang namespace.
llvm-svn: 220955
This commit is contained in:
parent
9ad7e26651
commit
1a07fd1845
|
@ -2658,9 +2658,6 @@ public:
|
|||
/// representation in the source code (ExplicitCastExpr's derived
|
||||
/// classes).
|
||||
class CastExpr : public Expr {
|
||||
public:
|
||||
typedef clang::CastKind CastKind;
|
||||
|
||||
private:
|
||||
Stmt *Op;
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ public:
|
|||
|
||||
// FIXME: CompoundLiteralExpr
|
||||
|
||||
ComplexPairTy EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy);
|
||||
ComplexPairTy EmitCast(CastKind CK, Expr *Op, QualType DestTy);
|
||||
ComplexPairTy VisitImplicitCastExpr(ImplicitCastExpr *E) {
|
||||
// Unlike for scalars, we don't have to worry about function->ptr demotion
|
||||
// here.
|
||||
|
@ -417,7 +417,7 @@ ComplexPairTy ComplexExprEmitter::EmitScalarToComplexCast(llvm::Value *Val,
|
|||
return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType()));
|
||||
}
|
||||
|
||||
ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op,
|
||||
ComplexPairTy ComplexExprEmitter::EmitCast(CastKind CK, Expr *Op,
|
||||
QualType DestTy) {
|
||||
switch (CK) {
|
||||
case CK_Dependent: llvm_unreachable("dependent cast kind in IR gen!");
|
||||
|
|
|
@ -635,7 +635,7 @@ void ASTStmtReader::VisitCastExpr(CastExpr *E) {
|
|||
unsigned NumBaseSpecs = Record[Idx++];
|
||||
assert(NumBaseSpecs == E->path_size());
|
||||
E->setSubExpr(Reader.ReadSubExpr());
|
||||
E->setCastKind((CastExpr::CastKind)Record[Idx++]);
|
||||
E->setCastKind((CastKind)Record[Idx++]);
|
||||
CastExpr::path_iterator BaseI = E->path_begin();
|
||||
while (NumBaseSpecs--) {
|
||||
CXXBaseSpecifier *BaseSpec = new (Reader.getContext()) CXXBaseSpecifier;
|
||||
|
|
Loading…
Reference in New Issue