[llvm-commits] [llvm] r164132 - in /llvm/trunk: include/llvm/Support/ lib/CodeGen/ lib/Target/ARM/MCTargetDesc/ lib/Target/MBlaze/MCTargetDesc/ lib/Target/Mips/MCTargetDesc/ lib/Target/PowerPC/MCTargetDesc/ lib/Target/X86/MCTargetDesc/ tools/llvm

David Blaikie dblaikie at gmail.com
Tue Sep 18 14:56:55 PDT 2012


On Tue, Sep 18, 2012 at 2:50 PM, John McCall <rjmccall at apple.com> wrote:
> On Sep 18, 2012, at 9:08 AM, Roman Divacky wrote:
>> Author: rdivacky
>> Date: Tue Sep 18 11:08:49 2012
>> New Revision: 164132
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=164132&view=rev
>> Log:
>> When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend
>> store this and use it to not emit long nops when the CPU is geode which
>> doesnt support them.
>
> It appears you need to update clang as well:

Have you synced up to at least r164132 in clang?

(gratuitous promotion: I emailed a script to llvm-dev for syncing all
the nested git repos (could be adapted for svn). I've made some
improvements locally (parallel syncing - credit to Chandler, though
his approach is much simpler) since then, though)

>
> llvm[2]: Compiling cc1as_main.cpp for Debug+Asserts build
> /Volumes/Data/llvm/tools/clang/tools/driver/cc1as_main.cpp:332:54: error: too
>       few arguments to function call, expected 2, have 1
>       MAB = TheTarget->createMCAsmBackend(Opts.Triple);
>             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            ^
> /Volumes/Data/llvm/include/llvm/Support/TargetRegistry.h:357:5: note:
>       'createMCAsmBackend' declared here
>     MCAsmBackend *createMCAsmBackend(StringRef Triple, StringRef CPU) const {
>     ^
> /Volumes/Data/llvm/tools/clang/tools/driver/cc1as_main.cpp:346:66: error: too
>       few arguments to function call, expected 2, have 1
>     MCAsmBackend *MAB = TheTarget->createMCAsmBackend(Opts.Triple);
>                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            ^
> /Volumes/Data/llvm/include/llvm/Support/TargetRegistry.h:357:5: note:
>       'createMCAsmBackend' declared here
>     MCAsmBackend *createMCAsmBackend(StringRef Triple, StringRef CPU) const {
>     ^
> 2 errors generated.
>
> John.
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list