这是indexloc提供的服务,不要输入任何密码
Skip to content

LLC not able to compile C++ code into C #34

@JL2210

Description

@JL2210

Extra info: https://stackoverflow.com/questions/31960290/using-the-llvm-linker-to-produce-c-code

$ clang++ -S -emit-llvm -o bytecode.ll tiny.cpp
--- snip ---
$ llc -march=c -o code.c bytecode.ll
llc: error: error: invalid target 'c'.

The C backend for LLVM was removed in 3.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions