Add support for global initializers.
llvm-svn: 78515
This commit is contained in:
@@ -173,7 +173,7 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy,
|
||||
// FIXME: The cast here is a huge hack.
|
||||
if (CGDebugInfo *DI = getDebugInfo()) {
|
||||
DI->setLocation(StartLoc);
|
||||
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
|
||||
if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
|
||||
DI->EmitFunctionStart(CGM.getMangledName(FD), RetTy, CurFn, Builder);
|
||||
} else {
|
||||
// Just use LLVM function name.
|
||||
|
||||
Reference in New Issue
Block a user