[LLVMdev] llc -load....

s88 dave.tw at gmail.com
Thu Jan 27 05:40:10 PST 2005


> On Tue, 25 Jan 2005, s88 wrote:
>
> > Thank you...
> > I am preparing to build a simple C compiler for our new architecture.
> > According to your suggestion. I try to dynamically load my backend.
> > But I got the error message :
> > llc :  target 'Your_Arch' does not support static compilation!
> > could you tell me where is this problem?
>
> A useful tool in llvm is named 'llvmgrep'.  You can use it like this:
>
> $ cd ~/llvm (or whatever)
> $ ./utils/llvmgrep 'does not support static compilation!'
> tools/llc/llc.cpp:159:                << "' does not support static compilation!\n";
>
> If you look at that file, you'll see that this is because your targets
> addPassesToEmitAssembly(..) method returned true, indicating that it does
> not support static compilation.
>
> -Chris

Hi everybody...
    I copy the Skeleton folder and just set the method
"Skeleton::addPassesToEmitAssembly" in the SkeletonTargetMachine.cpp
return false.
But I still get the message "does not support static compilation!".
Do I lost something?

Thanx.

Dave.




More information about the llvm-dev mailing list