llvm-hello-world
llvm-hello-world copied to clipboard
Does not work with clang
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
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.
I found through google search, hello world llvm as keywords. I am trying to understand how to generate llvm code to print strings.