diff options
author | Eric Christopher <echristo@apple.com> | 2011-08-23 17:56:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-08-23 17:56:55 +0000 |
commit | 551ef45e857b9f0236f559b26674928d1bb5f41d (patch) | |
tree | bfda06916f153209c7f0165d034902a720ad0bd5 /clang/lib/Driver/Action.cpp | |
parent | 7d3effa389fb97f8b20f4172e582928aaf48d7a3 (diff) | |
download | llvm-551ef45e857b9f0236f559b26674928d1bb5f41d.zip llvm-551ef45e857b9f0236f559b26674928d1bb5f41d.tar.gz llvm-551ef45e857b9f0236f559b26674928d1bb5f41d.tar.bz2 |
Add support for a verifier to the driver. Currently only verifies debug
output on darwin so is hard coded there.
As a note this will need a little bit of refactoring in the class
hierarchy to separate it out for different verifiers based on input type.
Fixes rdar://8256258.
llvm-svn: 138343
Diffstat (limited to 'clang/lib/Driver/Action.cpp')
-rw-r--r-- | clang/lib/Driver/Action.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Action.cpp b/clang/lib/Driver/Action.cpp index 549ce0a..ac95446 100644 --- a/clang/lib/Driver/Action.cpp +++ b/clang/lib/Driver/Action.cpp @@ -31,6 +31,7 @@ const char *Action::getClassName(ActionClass AC) { case LinkJobClass: return "linker"; case LipoJobClass: return "lipo"; case DsymutilJobClass: return "dsymutil"; + case VerifyJobClass: return "verify"; } assert(0 && "invalid class"); @@ -84,3 +85,7 @@ LipoJobAction::LipoJobAction(ActionList &Inputs, types::ID Type) DsymutilJobAction::DsymutilJobAction(ActionList &Inputs, types::ID Type) : JobAction(DsymutilJobClass, Inputs, Type) { } + +VerifyJobAction::VerifyJobAction(ActionList &Inputs, types::ID Type) + : JobAction(VerifyJobClass, Inputs, Type) { +} |