[PATCH] D75700: [NFC] Let mangler accept GlobalDecl

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 14:49:33 PST 2020


rjmccall added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:1028
     else
-      MC.mangleName(ND, Out);
+      MC.mangleName(GD, Out);
   } else {
----------------
What would be necessary in order for this to turn into just `mangleName(GD, Out)`?   I suspect there are a lot of subtle assumptions between the different mangling methods today that could probably be broken down a bit and we'd end up with something much cleaner.


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

https://reviews.llvm.org/D75700





More information about the cfe-commits mailing list