llc unhandled attribute

Hi,

I was trying to do a source to source transformation in llvm from c++11 more basic c++ (to transform away auto etc.) using llvm3.1.
I generate llvm bitcode using “clang++ -emit-llvm …”, but executing llc -march=cpp throws
/home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: void {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const string&): Assertion `attrs == 0 && “Unhandled attribute!”’ failed.

Does this point to some unimplented feature of the transformation?

thanks in advance,
Broes

I was trying to do a source to source transformation in llvm from c++11 more
basic c++ (to transform away auto etc.) using llvm3.1.
I generate llvm bitcode using "clang++ -emit-llvm ...", but executing llc
-march=cpp throws
/home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: void
{anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const
string&): Assertion `attrs == 0 && "Unhandled attribute!"' failed.

Does this point to some unimplented feature of the transformation?

Yes, but it seems irrelevant to your task. CPP backend generates the
C++ code containing LLVM API calls necessary to construct the input
IR.

> I was trying to do a source to source transformation in llvm from c++11
> more
> basic c++ (to transform away auto etc.) using llvm3.1.
> I generate llvm bitcode using "clang++ -emit-llvm ...", but executing
> llc
> -march=cpp throws
> /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493:
> void
> {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const
> string&): Assertion `attrs == 0 && "Unhandled attribute!"' failed.
>
> Does this point to some unimplented feature of the transformation?
Yes, but it seems irrelevant to your task. CPP backend generates the
C++ code containing LLVM API calls necessary to construct the input
IR.

Ah indeed.
Is there an alternative approach which would yield such a source to source
transformation?

Not that I'm aware of. Try emailing cfe-dev.