mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 00:56:05 +00:00

lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
//===--- ExprCXX.cpp - (C++) Expression AST Node Implementation -----------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements the subclesses of Expr class declared in ExprCXX.h
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "clang/AST/ExprCXX.h"
|
|
using namespace clang;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Child Iterators for iterating over subexpressions/substatements
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
// CXXCastExpr
|
|
Stmt::child_iterator CXXCastExpr::child_begin() {
|
|
return reinterpret_cast<Stmt**>(&Op);
|
|
}
|
|
Stmt::child_iterator CXXCastExpr::child_end() {
|
|
return reinterpret_cast<Stmt**>(&Op)+1;
|
|
}
|
|
|
|
// CXXBoolLiteralExpr
|
|
Stmt::child_iterator CXXBoolLiteralExpr::child_begin() {
|
|
return child_iterator();
|
|
}
|
|
Stmt::child_iterator CXXBoolLiteralExpr::child_end() {
|
|
return child_iterator();
|
|
}
|
|
|
|
// CXXThrowExpr
|
|
Stmt::child_iterator CXXThrowExpr::child_begin() {
|
|
return reinterpret_cast<Stmt**>(&Op);
|
|
}
|
|
Stmt::child_iterator CXXThrowExpr::child_end() {
|
|
// If Op is 0, we are processing throw; which has no children.
|
|
if (Op == 0)
|
|
return reinterpret_cast<Stmt**>(&Op)+0;
|
|
return reinterpret_cast<Stmt**>(&Op)+1;
|
|
}
|