[PATCH] D38061: Set AnonymousTagLocations false for ASTContext if column info is expected not to be used

Richard Smith - zygoloid via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 12:20:49 PDT 2018


rsmith requested changes to this revision.
rsmith added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/Frontend/CompilerInstance.cpp:491-494
+  PrintingPolicy Policy = Context->getPrintingPolicy();
+  if (!getCodeGenOpts().DebugColumnInfo)
+    Policy.AnonymousTagLocations = false;
+  Context->setPrintingPolicy(Policy);
----------------
It's not reasonable for a debug info flag to affect the printing policy used throughout the compiler.


Repository:
  rC Clang

https://reviews.llvm.org/D38061





More information about the llvm-commits mailing list