Mercurial > projects > ldc
diff gen/tollvm.cpp @ 106:5b5194b25f33 trunk
[svn r110] Fixed typeinfo for classes.
author | lindquist |
---|---|
date | Mon, 19 Nov 2007 06:01:48 +0100 |
parents | 4d1e9eb001e0 |
children | 3efbcc81ba45 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Mon Nov 19 03:39:46 2007 +0100 +++ b/gen/tollvm.cpp Mon Nov 19 06:01:48 2007 +0100 @@ -1260,6 +1260,11 @@ return llvm::dyn_cast<llvm::Argument>(v); } +llvm::GlobalVariable* isaGlobalVar(llvm::Value* v) +{ + return llvm::dyn_cast<llvm::GlobalVariable>(v); +} + ////////////////////////////////////////////////////////////////////////////////////////// bool DtoIsTemplateInstance(Dsymbol* s)