comparison 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
comparison
equal deleted inserted replaced
339:385a18242485 340:351c0077d0b3
29 Logger::println("*** Initializing D runtime declarations ***"); 29 Logger::println("*** Initializing D runtime declarations ***");
30 LOG_SCOPE; 30 LOG_SCOPE;
31 31
32 LLVM_D_BuildRuntimeModule(); 32 LLVM_D_BuildRuntimeModule();
33 return true; 33 return true;
34
35 /*
36 if (!global.params.runtimeImppath) {
37 error("You must set the runtime import path with -E");
38 fatal();
39 }
40 std::string filename(global.params.runtimeImppath);
41 filename.append("/llvmdcore.bc");
42 llvm::MemoryBuffer* buffer = llvm::MemoryBuffer::getFile(filename.c_str(), filename.length());
43 if (!buffer) {
44 Logger::println("Failed to load runtime library from disk");
45 runtime_failed = true;
46 return false;
47 }
48
49 std::string errstr;
50 bool retval = false;
51 M = llvm::ParseBitcodeFile(buffer, &errstr);
52 if (M) {
53 retval = true;
54 }
55 else {
56 Logger::println("Failed to load runtime: %s", errstr.c_str());
57 runtime_failed = true;
58 }
59
60 delete buffer;
61 return retval;
62 */
63 } 34 }
64 35
65 void LLVM_D_FreeRuntime() 36 void LLVM_D_FreeRuntime()
66 { 37 {
67 if (M) { 38 if (M) {