ldc/gen/moduleinfo.h
David Nadlinger e7c95dbd53 gen: Separate ModuleInfo struct emission code [nfc]
gen/module{.h, .cpp} currently is a big kitchen sink for various things
related to emitting modules. This hopefully makes the distinction between
generating the ModuleInfo data and the code to register it with druntime
clearer.
2016-08-18 16:27:34 +02:00

20 lines
672 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//===-- gen/moduleinfo.h - ModuleInfo instance data emission ----*- C++ -*-===//
//
// LDC the LLVM D compiler
//
// This file is distributed under the BSD-style LDC license. See the LICENSE
// file for details.
//
//===----------------------------------------------------------------------===//
namespace llvm {
class GlobalVariable;
}
class Module;
/// Creates a global variable containing the ModuleInfo data for the given
/// module.
///
/// Note that this just creates data itself, and is not concerned with emitting
/// a reference pointing to it to register the module with the runtime.
llvm::GlobalVariable *genModuleInfo(Module *m);