[llvm] Remove some unfinished code committed by mistake.
authorZoltan Varga <vargaz@gmail.com>
Wed, 17 Feb 2016 02:56:03 +0000 (21:56 -0500)
committerZoltan Varga <vargaz@gmail.com>
Wed, 17 Feb 2016 02:56:27 +0000 (21:56 -0500)
mono/mini/mini-llvm-cpp.cpp
mono/mini/mini-llvm-cpp.h
mono/mini/mini-llvm.c

index 6fab934f479b6d7503dffc9e043e367814bc9db2..f87e62929a0983ff81fc4e5f771746a7656cc1db 100644 (file)
@@ -217,11 +217,3 @@ mono_llvm_set_call_preserveall_cc (LLVMValueRef func)
 {
        unwrap<CallInst>(func)->setCallingConv (CallingConv::PreserveAll);
 }
-
-void
-mono_llvm_create_di_compile_unit (LLVMModuleRef module)
-{
-       DIBuilder d(*unwrap(module));
-
-       d.createCompileUnit (0, "X", "Y", "Z", false, "", 0, "", DIBuilder::DebugEmissionKind::FullDebug, true);
-}
index 9e551e2557d8ace03612505abb36b9c4f2c2310f..78bccd07ff9422a5adcc1ddc75af0343f5a84a8c 100644 (file)
@@ -111,9 +111,6 @@ mono_llvm_set_unhandled_exception_handler (void);
 void
 default_mono_llvm_unhandled_exception (void);
 
-void
-mono_llvm_create_di_compile_unit (LLVMModuleRef module);
-
 G_END_DECLS
 
 #endif /* __MONO_MINI_LLVM_CPP_H__ */  
index b81644612a5a5e966d1e88cbcbdbdeca9e597bac..1351b15e9c014667c25afb2a5328ca757b3cdb48 100644 (file)
@@ -8004,8 +8004,6 @@ mono_llvm_emit_aot_module (const char *filename, const char *cu_name)
        emit_dbg_info (&aot_module, filename, cu_name);
        emit_aot_file_info (&aot_module);
 
-       mono_llvm_create_di_compile_unit (aot_module.lmodule);
-
        /*
         * Replace GOT entries for directly callable methods with the methods themselves.
         * It would be easier to implement this by predefining all methods before compiling