aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-11-01 01:53:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-11-01 01:53:16 +0000
commit45d196b8387dcefc4df26cda114fa34c6528e928 (patch)
tree849b7fd5a97218def7729663bc1b83b68f13f199 /lib/CodeGen/CGDebugInfo.h
parent09d84babc2d1f36bbf9c3aaa624d5aea52461f46 (diff)
Move IRBuilder type definition to common file.
- No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r--lib/CodeGen/CGDebugInfo.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h
index 9e5ad17b0f..9f25812406 100644
--- a/lib/CodeGen/CGDebugInfo.h
+++ b/lib/CodeGen/CGDebugInfo.h
@@ -16,10 +16,10 @@
#include "clang/AST/Type.h"
#include "clang/Basic/SourceLocation.h"
-#include "llvm/Support/IRBuilder.h"
#include <map>
#include <vector>
+#include "CGBuilder.h"
namespace llvm {
class Function;
@@ -41,6 +41,7 @@ namespace llvm {
namespace clang {
class FunctionDecl;
class VarDecl;
+
namespace CodeGen {
class CodeGenModule;
@@ -54,8 +55,6 @@ private:
SourceLocation CurLoc;
SourceLocation PrevLoc;
- typedef llvm::IRBuilder<> BuilderType;
-
/// CompileUnitCache - Cache of previously constructed CompileUnits.
std::map<const FileEntry*, llvm::CompileUnitDesc *> CompileUnitCache;
@@ -109,24 +108,24 @@ public:
/// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a change of
/// source line.
- void EmitStopPoint(llvm::Function *Fn, BuilderType &Builder);
+ void EmitStopPoint(llvm::Function *Fn, CGBuilderTy &Builder);
/// EmitFunctionStart - Emit a call to llvm.dbg.function.start to indicate
/// start of a new function.
void EmitFunctionStart(const char *Name, QualType ReturnType,
- llvm::Function *Fn, BuilderType &Builder);
+ llvm::Function *Fn, CGBuilderTy &Builder);
/// EmitRegionStart - Emit a call to llvm.dbg.region.start to indicate start
/// of a new block.
- void EmitRegionStart(llvm::Function *Fn, BuilderType &Builder);
+ void EmitRegionStart(llvm::Function *Fn, CGBuilderTy &Builder);
/// EmitRegionEnd - Emit call to llvm.dbg.region.end to indicate end of a
/// block.
- void EmitRegionEnd(llvm::Function *Fn, BuilderType &Builder);
+ void EmitRegionEnd(llvm::Function *Fn, CGBuilderTy &Builder);
/// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration.
void EmitDeclare(const VarDecl *decl, unsigned Tag, llvm::Value *AI,
- BuilderType &Builder);
+ CGBuilderTy &Builder);
/// EmitGlobalVariable - Emit information about a global variable.
void EmitGlobalVariable(llvm::GlobalVariable *GV, const VarDecl *decl);