llvm-hello-world icon indicating copy to clipboard operation
llvm-hello-world copied to clipboard

Does not work with clang

Open LucasMW opened this issue 8 years ago • 2 comments

Trying to generate a binary with clang will result in the following error: $me clang a.ll a.ll:11:45: error: expected comma after getelementptr's type %cast210 = getelementptr [13 x i8]* @.str, i64 0, i64 0 ^ 1 error generated.

I think it should work, because clang compiles C to llvm and compiles llvm to binary clang --version Apple LLVM version 8.0.0 (clang-800.0.38) Target: x86_64-apple-darwin15.6.0 Thread model: posix

LucasMW avatar Nov 20 '16 19:11 LucasMW

This seems to be a duplicate of that other issue that was also opened very recently. Do you mind telling me how you even found this little repo? I haven't touched it in three years.

dfellis avatar Nov 20 '16 23:11 dfellis

I found through google search, hello world llvm as keywords. I am trying to understand how to generate llvm code to print strings.

LucasMW avatar Nov 21 '16 00:11 LucasMW