mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 12:59:21 +03:00

Use the output filename (-of or inferred) directly if a single file is emitted per compiled module. Fixes issue #1843.
23 lines
638 B
C++
23 lines
638 B
C++
//===-- driver/toobj.h - Object file emission -------------------*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
//
|
||
// Handles emission of "finished" LLVM modules to on-disk object files.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#ifndef LDC_DRIVER_TOOBJ_H
|
||
#define LDC_DRIVER_TOOBJ_H
|
||
|
||
namespace llvm {
|
||
class Module;
|
||
}
|
||
|
||
void writeModule(llvm::Module *m, const char *filename);
|
||
|
||
#endif
|