[llvm-commits] [llvm-gcc-4.2] r74656 - /llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
Bill Wendling
isanbard at gmail.com
Wed Jul 1 16:14:05 PDT 2009
Author: void
Date: Wed Jul 1 18:14:04 2009
New Revision: 74656
URL: http://llvm.org/viewvc/llvm-project?rev=74656&view=rev
Log:
Hack to get this file to compile with LLVMContext stuff.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp?rev=74656&r1=74655&r2=74656&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp Wed Jul 1 18:14:04 2009
@@ -46,10 +46,12 @@
///
void dummy_function() {
llvm::ModuleProvider *MP = new llvm::ExistingModuleProvider(0);
+ llvm::LLVMContext Ctxt();
+
llvm::createVerifierPass();
llvm::CreateBitcodeWriterPass(*llvm::cout);
llvm::WriteBitcodeToFile(0, *llvm::cout);
- llvm::ParseBitcodeFile(NULL);
+ llvm::ParseBitcodeFile(NULL, Ctxt);
llvm::MemoryBuffer::getNewMemBuffer(0);
llvm::createInstructionCombiningPass();
More information about the llvm-commits
mailing list