[LLVMbugs] [Bug 12354] New: CppBackend does not handle metadata

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 26 01:58:40 PDT 2012


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

             Bug #: 12354
           Summary: CppBackend does not handle metadata
           Product: libraries
           Version: 3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Target Description Classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: 6vunkfm7qe at snkmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Running "llc -march=cpp foo.ll" where foo contains metadata (e.g., debug
metadata produced by "clang -g -O0 -S -emit-llvm foo.c -o foo.ll") results in
"LLVM ERROR: Invalid primitive type".  That error message comes from the fact
that the metadata type is missing from a switch statement in CPPBackend.cpp,
but just adding the "case Metadata" is not sufficient, as the metadata
producing c++ api is still not emitted.

Here's my test program:

float foo( float x )
{
  return x * x;
}

int frab;

-- 
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