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 | c4399f779b3323efa8b845369b6154a626a38eac (patch) | |
tree | 7e08f50c1f7a0a27dc6ce4fcf6b092dea3564998 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 2eb3ade08916bece705082ca9d2b148361484aab (diff) | |
download | bcm5719-llvm-c4399f779b3323efa8b845369b6154a626a38eac.tar.gz bcm5719-llvm-c4399f779b3323efa8b845369b6154a626a38eac.zip |
Add frontend flags to enable bitcode verifier pass.
llvm-svn: 146441
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 2ddcc3e5dc0..3d21ef9af3d 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/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) {} |