mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 12:32:33 +03:00
Merge branch 'master' into merge-2.064
This commit is contained in:
commit
ecbd01a2fa
1 changed files with 1 additions and 8 deletions
|
@ -59,13 +59,6 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if LDC_LLVM_VER >= 304
|
||||
// FIXME: This is from driver/ldc-version.h.
|
||||
namespace ldc {
|
||||
extern const char * const ldc_version;
|
||||
}
|
||||
#endif
|
||||
|
||||
static llvm::cl::opt<bool> preservePaths("op",
|
||||
llvm::cl::desc("Do not strip paths from source file"),
|
||||
llvm::cl::ZeroOrMore);
|
||||
|
@ -605,7 +598,7 @@ llvm::Module* Module::genLLVMModule(llvm::LLVMContext& context)
|
|||
// Emit ldc version as llvm.ident metadata.
|
||||
llvm::NamedMDNode *IdentMetadata = ir.module->getOrInsertNamedMetadata("llvm.ident");
|
||||
std::string Version("ldc version ");
|
||||
Version.append(ldc::ldc_version);
|
||||
Version.append(global.ldc_version);
|
||||
llvm::Value *IdentNode[] = {
|
||||
llvm::MDString::get(ir.context(), Version)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue