ldc/driver/toobj.h
Martin 13218366b4 Don't necessarily enforce file extension of .bc, .ll, .s files
Use the output filename (-of or inferred) directly if a single file is
emitted per compiled module.

Fixes issue #1843.
2016-11-09 20:34:22 +01:00

23 lines
638 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.

//===-- 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