LLVM Assembly files and Xcode 3.1
LLVM Assembly files and Xcode 3.1
- Subject: LLVM Assembly files and Xcode 3.1
- From: Brendan Younger <email@hidden>
- Date: Fri, 18 Jul 2008 14:08:03 -0400
Hi,
I've been trying to add an LLVM .ll (human-readable assembly) file to
my project and have it compiled into a bitcode file that is then
linked with all the other object files.
So far, I've created a custom build rule which runs the following on
*.ll files:
/usr/local/bin/llvm-as -f -o ${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.o
${INPUT_FILE_PATH}
However, during linking I get the error:
ld warning: in ${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.o, file is not
of required architecture
Now, according to the release notes, the linker should be able to
handle LLVM bitcode files and I've verified that it does handle those
which are output by llvm-gcc-4.2 -O4. It seems that llvm-as produces
bitcode files with an extra header and an extra footer compared to
those output by llvm-gcc-4.2. Is this due to a mismatch in LLVM
versions (I have llvm 2.4svn installed) or do I need to find a way to
get llvm-gcc-4.2 to output a bitcode file from a .ll file?
Any help is appreciated,
Brendan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden