[LLVMbugs] [Bug 898] NEW: llvm-gcc4 doesn't compile after TargetMachine.h changes

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 5 19:13:08 PDT 2006


           Summary: llvm-gcc4 doesn't compile after TargetMachine.h changes
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com

The first argument to addPassesToEmitFile now requires a FunctionPassManager but
llvm-backend.cpp is providing a PassManager. The compiler rightfully complains.

Output from "make":
c++ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -DHAVE_CONFIG_H -Wno-unused
  -I. -I. -I../../svnsrc/gcc -I../../svnsrc/gcc/. -I../../svnsrc/gcc/../include
-I../../svnsrc/gcc/../libcpp/include  -I/proj/llvm/llvm/include
-I/proj/llvm/build/include ../../svnsrc/gcc/llvm-backend.cpp -o llvm-backend.o
../../svnsrc/gcc/llvm-backend.cpp: In function `void llvm_asm_file_start()':
../../svnsrc/gcc/llvm-backend.cpp:295: error: no matching function for call to
std::basic_ostream<char, std::char_traits<char> >&,
llvm::TargetMachine::CodeGenFileType, bool)'
/proj/llvm/llvm/include/llvm/Target/TargetMachine.h:155: note: candidates are:
virtual bool
std::ostream&, llvm::TargetMachine::CodeGenFileType, bool)
make[1]: *** [llvm-backend.o] Error 1
make[1]: Leaving directory `/proj/llvm/cfe/build/gcc'
make: *** [all-gcc] Error 2

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list