Go to file
Rafael Espindola 55fdcff446 Add calls to doInitialization() and doFinalization() in verifyFunction()
The function verifyFunction() in lib/IR/Verifier.cpp misses some
calls. It creates a temporary FunctionPassManager that will run a
single Verifier pass. Unfortunately, FunctionPassManager is no
PassManager and does not call doInitialization() and doFinalization()
by itself. Verifier does important tasks in doInitialization() such as
collecting type information used to check DebugInfo metadata and
doFinalization() does some additional checks. Therefore these checks
were missed and debug info couldn't be verified at all, it just
crashed if the function had some.

verifyFunction() is currently not used in llvm unless -debug option is
enabled, and in unittests/IR/VerifierTest.cpp

VerifierTest had to be changed to create the function in a module from
which the type debug info can be collected.

Patch by Michael Kruse.

llvm-svn: 193719
2013-10-30 22:37:51 +00:00
clang Add CodeGenABITypes.h for use in LLDB. 2013-10-30 21:53:58 +00:00
clang-tools-extra Refactoring transform-specific options 2013-10-17 17:57:36 +00:00
compiler-rt [msandr] Add check-before-write optimization. 2013-10-30 17:44:22 +00:00
debuginfo-tests don't use CHECK-NEXT because it may be on the same line. 2013-09-18 23:01:54 +00:00
libclc Clean-up dependency files 2013-10-23 02:49:33 +00:00
libcxx Update status of issues 2013-10-23 05:59:18 +00:00
libcxxabi Move local Db type out to namespace scope. 2013-10-22 16:45:48 +00:00
lld Use StringRef::startswith_lower(). 2013-10-30 20:33:51 +00:00
lldb <rdar://problem/14496092> 2013-10-30 21:37:46 +00:00
llvm Add calls to doInitialization() and doFinalization() in verifyFunction() 2013-10-30 22:37:51 +00:00
openmp Update web pages to include style sheets and referenced documents missed before. 2013-10-03 11:55:28 +00:00
polly ScopInfo: Add support for AssumedContext 2013-10-29 21:05:49 +00:00