[LLVMbugs] [Bug 8628] New: PTX CodeGen depends on MC, doesn't build with clang -O0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 16 14:04:12 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=8628

           Summary: PTX CodeGen depends on MC, doesn't build with clang
                    -O0
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PTX
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu


Function PTXMCAsmStreamer::EmitDwarfFileDirective in
lib/Target/PTX/PTXMCAsmStreamer.cpp contains a call to
MCStreamer::EmitDwarfFileDirective.

When built with clang -O0, tools which do link against the CodeGen libraries
but don't link against the MC library fail to build:

Undefined symbols:
  "llvm::MCStreamer::EmitDwarfFileDirective(unsigned int, llvm::StringRef)",
referenced from:
      llvm::PTXMCAsmStreamer::EmitDwarfFileDirective(unsigned int,
llvm::StringRef) in libLLVMPTXCodeGen.a(PTXMCAsmStreamer.o)
  "llvm::MCStreamer::EmitDwarfLocDirective(unsigned int, unsigned int, unsigned
int, unsigned int, unsigned int, unsigned int)", referenced from:
      vtable for llvm::PTXMCAsmStreamer in
libLLVMPTXCodeGen.a(PTXMCAsmStreamer.o)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list