Problem regarding llc command line option

Hi,

I was trying to port a Target from llvm-2.6 to llvm-2.9 and have got stuck to a very strange problem.

There was an option defined in the target Asm Printer file with signature as -

static cl::opt AsdPri(“asd-pri”, cl::Hidden, cl::desc(“Print ASD format”));

How after compiling the target, I dont see the option enabled in
$ llc -help-hidden
Also it gives error while using the command line option -asd-pri.

Strange thing is that it works if I copy this declaration to other file in the same folder. Can some one please point out something that has changed in llvm-2.6 to llvm-2.9 that could be causing the problem ? Or any other suggestions. I have already tried looking at svn logs to find something related.

Thanks,
Ankur

P.S. Sorry for not being able to share the actual source files right now.

Hi Ankur,

I was trying to port a Target from llvm-2.6 to llvm-2.9 and have got stuck to a
very strange problem.

There was an option defined in the target Asm Printer file with signature as -

static cl::opt<bool> AsdPri("asd-pri", cl::Hidden, cl::desc("Print ASD format"));

How after compiling the target, I dont see the option enabled in
$ llc -help-hidden
Also it gives error while using the command line option -asd-pri.

is it possible that llc is not linked with this file? Alternatively, that the
object file is not being rebuilt due to a build system bug, and you are linking
llc with an old version that predates your adding this option?

Ciao, Duncan.