Introduce a debug info builder.

Moves all code from todebug into a new class.
Also caches the compilation unit in order to fix a LLVM 3.4 compile error.
This commit is contained in:
kai
2013-07-29 00:04:08 +02:00
parent 4e8acf7eb6
commit c28c7fb134
14 changed files with 521 additions and 493 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ IRTargetScope::IRTargetScope(
//////////////////////////////////////////////////////////////////////////////////////////
IRState::IRState(llvm::Module* m)
: module(m), dibuilder(*m)
: module(m), DBuilder(this, *m)
{
interfaceInfoType = NULL;
mutexType = NULL;