[cfe-commits] r67035 - in /cfe/trunk/include/clang/Driver: Action.h Job.h
Daniel Dunbar
daniel at zuster.org
Sun Mar 15 22:17:45 PDT 2009
Author: ddunbar
Date: Mon Mar 16 00:17:44 2009
New Revision: 67035
URL: http://llvm.org/viewvc/llvm-project?rev=67035&view=rev
Log:
Driver: Include Casting header definitions in a few places, add
Action::getInputs.
Modified:
cfe/trunk/include/clang/Driver/Action.h
cfe/trunk/include/clang/Driver/Job.h
Modified: cfe/trunk/include/clang/Driver/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Action.h?rev=67035&r1=67034&r2=67035&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Action.h (original)
+++ cfe/trunk/include/clang/Driver/Action.h Mon Mar 16 00:17:44 2009
@@ -15,6 +15,13 @@
#include "clang/Driver/Types.h"
#include "clang/Driver/Util.h"
+#include "llvm/Support/Casting.h"
+using llvm::isa;
+using llvm::cast;
+using llvm::cast_or_null;
+using llvm::dyn_cast;
+using llvm::dyn_cast_or_null;
+
namespace clang {
namespace driver {
class Arg;
@@ -71,6 +78,9 @@
ActionClass getKind() const { return Kind; }
types::ID getType() const { return Type; }
+ ActionList &getInputs() { return Inputs; }
+ const ActionList &getInputs() const { return Inputs; }
+
size_type size() const { return Inputs.size(); }
iterator begin() { return Inputs.begin(); }
Modified: cfe/trunk/include/clang/Driver/Job.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Job.h?rev=67035&r1=67034&r2=67035&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Job.h (original)
+++ cfe/trunk/include/clang/Driver/Job.h Mon Mar 16 00:17:44 2009
@@ -13,6 +13,13 @@
#include "clang/Driver/Util.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/Support/Casting.h"
+using llvm::isa;
+using llvm::cast;
+using llvm::cast_or_null;
+using llvm::dyn_cast;
+using llvm::dyn_cast_or_null;
+
namespace clang {
namespace driver {
More information about the cfe-commits
mailing list