Fix build with LLVM top-of-tree.

The DIBuilder::getCU() method has been removed; we now just store the
compilation unit returned when we call DIBuilder::createCompileUnit.
This commit is contained in:
Matt Pharr
2013-07-22 15:42:52 -07:00
parent abf43ad01d
commit 946c39a5df
3 changed files with 14 additions and 0 deletions

View File

@@ -41,6 +41,9 @@
#include "ispc.h"
#include "ast.h"
#if !defined(LLVM_3_1) && !defined(LLVM_3_2) && !defined(LLVM_3_3)
#include <llvm/DebugInfo.h>
#endif
namespace llvm
{
@@ -153,6 +156,10 @@ public:
/** The diBuilder manages generating debugging information */
llvm::DIBuilder *diBuilder;
#if !defined(LLVM_3_1) && !defined(LLVM_3_2) && !defined(LLVM_3_3)
llvm::DICompileUnit diCompileUnit;
#endif // LLVM_3_4+
private:
const char *filename;
AST *ast;