[LLVMdev] problems with tablegen and namespaces

Chris Lattner sabre at nondot.org
Mon May 1 16:46:43 PDT 2006


On Mon, 1 May 2006, [UTF-8] Rafael Esp?ndola wrote:

>> > In ARMGenInstrNames.inc, the TargetInstrInfo namespace is used if the
>> > AAA instruction isn't defined and the ARM namespace is used if it is
>> > defined.
>> 
>> I don't follow here.  XXXGenInstrNames.inc shouldn't have namespaces at
>> all.  Can you paste a few lines out of the file that you are seeing?

> Sure:
>
> with AAA defined, ARMGenInstrNames.inc looks like:
> -----------------------------------------
> namespace llvm {
> namespace ARM {

> --------------------------------------
> and without AAA, ARMGenInstrNames.inc looks like:
> --------------------------------------------
> namespace llvm {
> namespace TargetInstrInfo {

Ahhh... that would be bad :)

This should be fixed, thanks!

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-dev mailing list