Don't ignore extern(C++) namespaces during codegen

This commit is contained in:
Martin 2016-03-27 16:31:17 +02:00
parent 88cb50007c
commit c8dae96434

View file

@ -12,6 +12,7 @@
#include "enum.h"
#include "id.h"
#include "init.h"
#include "nspace.h"
#include "rmem.h"
#include "template.h"
#include "gen/classes.h"
@ -133,6 +134,18 @@ public:
//////////////////////////////////////////////////////////////////////////
void visit(Nspace *ns) LLVM_OVERRIDE {
IF_LOG Logger::println("Nspace::codegen for %s", ns->toPrettyChars());
LOG_SCOPE
if (!isError(ns) && ns->members) {
for (auto sym : *ns->members)
sym->accept(this);
}
}
//////////////////////////////////////////////////////////////////////////
void visit(InterfaceDeclaration *decl) LLVM_OVERRIDE {
IF_LOG Logger::println("InterfaceDeclaration::codegen: '%s'",
decl->toPrettyChars());