Mercurial > projects > ldc
comparison gen/llvmhelpers.h @ 936:2ebac4750adb
Removed some dead code.
Fixed assertion filenames for imported template instances. Fixes #152 .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 04 Feb 2009 02:10:23 +0100 |
parents | d3a6f1a96731 |
children | 39519a1ff603 |
comparison
equal
deleted
inserted
replaced
935:acd745fbdb66 | 936:2ebac4750adb |
---|---|
14 // emit an alloca | 14 // emit an alloca |
15 llvm::AllocaInst* DtoAlloca(const LLType* lltype, const std::string& name = ""); | 15 llvm::AllocaInst* DtoAlloca(const LLType* lltype, const std::string& name = ""); |
16 llvm::AllocaInst* DtoAlloca(const LLType* lltype, LLValue* arraysize, const std::string& name = ""); | 16 llvm::AllocaInst* DtoAlloca(const LLType* lltype, LLValue* arraysize, const std::string& name = ""); |
17 | 17 |
18 // assertion generator | 18 // assertion generator |
19 void DtoAssert(Loc* loc, DValue* msg); | 19 void DtoAssert(Module* M, Loc* loc, DValue* msg); |
20 | 20 |
21 // return the LabelStatement from the current function with the given identifier or NULL if not found | 21 // return the LabelStatement from the current function with the given identifier or NULL if not found |
22 LabelStatement* DtoLabelStatement(Identifier* ident); | 22 LabelStatement* DtoLabelStatement(Identifier* ident); |
23 // emit goto | 23 // emit goto |
24 void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf); | 24 void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf); |