PR16933: Don't try to codegen things after we've seen errors.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 19 Aug 2013 21:02:26 +0000 (21:02 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 19 Aug 2013 21:02:26 +0000 (21:02 +0000)
commit4a9ec7b59d1ebbb046987dbde2bd0372c6d66170
tree8f275aafba15976546c1c735aebfb16df893dfab
parent39587672b8261cf1356f4ca8156a93cef5f8cc92
PR16933: Don't try to codegen things after we've seen errors.

Refactor the underlying code a bit to remove unnecessary calls to
"hasErrorOccurred" & make them consistently at all the entry points to
the IRGen ASTConsumer.

llvm-svn: 188707
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/ModuleBuilder.cpp