build/MBlazeDisassembler: Some compilers may generate an MBlaze disassembler
authorDaniel Dunbar <daniel@zuster.org>
Thu, 10 Nov 2011 22:00:37 +0000 (22:00 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 10 Nov 2011 22:00:37 +0000 (22:00 +0000)
that depends on MBlazeCodeGen. This is a layering violation that should really
be fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144321 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MBlaze/Disassembler/LLVMBuild.txt

index c5c4f8043bf4b31555f9dd55ef2e311055ec06b0..b2b3a3a5cf645e7cc895987c79a5810bd1ae9867 100644 (file)
 type = Library
 name = MBlazeDisassembler
 parent = MBlaze
-required_libraries = MBlazeDesc MBlazeInfo MC Support
+; Strictly speaking, we probably shouldn't have a dependency on
+; MBlazeCodeGen. However, given the current factoring we end up including
+; MBlazeGenRegisterInfo.inc in the disassembler. Those generated headers end up
+; referencing external variables through GPRRegClass, SPRRegClass, and
+; CRCRegClass. These aren't actually used, but some compilers may generate
+; references to them.
+required_libraries = MBlazeCodeGen MBlazeDesc MBlazeInfo MC Support
 add_to_library_groups = MBlaze