llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.13k stars 11.62k forks source link

CppBackend does not handle metadata #12726

Closed llvmbot closed 1 year ago

llvmbot commented 12 years ago
Bugzilla Link 12354
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @asl,@isanbard

Extended Description

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;

arsenm commented 1 year ago

C backend was removed