[LLVMdev] [PATCH] 8975 - llc should warn about invalid target triple
Duncan Sands
baldrick at free.fr
Thu Jun 7 01:48:37 PDT 2012
Hi César,
> I changed Module::setTargetTriple to return true/false when an
> invalid/valid triple is passed as parameter.
target triples with unknown vendor and other fields occur all the time.
That's fine as long as you don't need those fields. What I am saying is
that a boolean value "valid" or "not valid" isn't very useful in my opinion.
Ciao, Duncan.
>
> The validation is made using the ADT/Triple.cpp
>
> Last I modified LLParser::ParseTargetDefinition() to check if the
> return of setTargetTriple warns about an invalid triple.
>
>
> John.
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list