diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-12-12 23:05:47 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-12-12 23:05:47 +0000 |
commit | ff7892758f1e46221b552486c1e329db92147ebc (patch) | |
tree | 90d93af406f805b3628f2d2fcfa5c758095c4059 /lib/CodeGen/CodeGenAction.cpp | |
parent | 8ef8f431aaeed3d7418959c81dfaa677b44f05ed (diff) |
Add frontend flags to enable bitcode verifier pass.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenAction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 2ddcc3e5dc..3d21ef9af3 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -301,6 +301,7 @@ static raw_ostream *GetOutputStream(CompilerInstance &CI, case Backend_EmitLL: return CI.createDefaultOutputFile(false, InFile, "ll"); case Backend_EmitBC: + case Backend_EmitBCVerify: return CI.createDefaultOutputFile(true, InFile, "bc"); case Backend_EmitNothing: return 0; @@ -412,6 +413,9 @@ EmitAssemblyAction::EmitAssemblyAction(llvm::LLVMContext *_VMContext) EmitBCAction::EmitBCAction(llvm::LLVMContext *_VMContext) : CodeGenAction(Backend_EmitBC, _VMContext) {} +EmitBCVerifyAction::EmitBCVerifyAction(llvm::LLVMContext *_VMContext) + : CodeGenAction(Backend_EmitBCVerify, _VMContext) {} + EmitLLVMAction::EmitLLVMAction(llvm::LLVMContext *_VMContext) : CodeGenAction(Backend_EmitLL, _VMContext) {} |