[Lldb-commits] [PATCH] D101921: [MC] Make it possible for targets to define their own MCObjectFileInfo

Fangrui Song via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 25 10:42:42 PDT 2021


MaskRay added inline comments.


================
Comment at: llvm/include/llvm/Support/TargetRegistry.h:26
 #include "llvm/ADT/iterator_range.h"
+#include "llvm/MC/MCObjectFileInfo.h"
 #include "llvm/Support/CodeGen.h"
----------------
`include/llvm/Support/TargetRegistry.h now has cyclic dependency on include/MC/*.h`.

The previous style isn't good as well: `include/llvm/Support/TargetRegistry.h` has forward declarations of a number of MC* classes.

I think this header probably should be moved to lib/Target.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101921/new/

https://reviews.llvm.org/D101921



More information about the lldb-commits mailing list