Mercurial > projects > ldc
diff gen/runtime.cpp @ 340:351c0077d0b3 trunk
[svn r361] Removed some dead code.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:04:25 +0200 |
parents | 385a18242485 |
children | cc40db549aea |
line wrap: on
line diff
--- a/gen/runtime.cpp Sun Jul 13 01:29:49 2008 +0200 +++ b/gen/runtime.cpp Sun Jul 13 02:04:25 2008 +0200 @@ -31,35 +31,6 @@ LLVM_D_BuildRuntimeModule(); return true; - - /* - if (!global.params.runtimeImppath) { - error("You must set the runtime import path with -E"); - fatal(); - } - std::string filename(global.params.runtimeImppath); - filename.append("/llvmdcore.bc"); - llvm::MemoryBuffer* buffer = llvm::MemoryBuffer::getFile(filename.c_str(), filename.length()); - if (!buffer) { - Logger::println("Failed to load runtime library from disk"); - runtime_failed = true; - return false; - } - - std::string errstr; - bool retval = false; - M = llvm::ParseBitcodeFile(buffer, &errstr); - if (M) { - retval = true; - } - else { - Logger::println("Failed to load runtime: %s", errstr.c_str()); - runtime_failed = true; - } - - delete buffer; - return retval; - */ } void LLVM_D_FreeRuntime()