================
@@ -11,17 +11,46 @@
 
//===----------------------------------------------------------------------===//
 
 #include "flang/Frontend/CodeGenOptions.h"
+#include "llvm/TargetParser/Triple.h"
 #include <optional>
 #include <string.h>
 
 namespace Fortran::frontend {
 
+using namespace llvm;
+
 CodeGenOptions::CodeGenOptions() {
 #define CODEGENOPT(Name, Bits, Default) Name = Default;
 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
 #include "flang/Frontend/CodeGenOptions.def"
 }
 
+// Check if ASan should use GC-friendly instrumentation for globals.
----------------
tarunprabhu wrote:

It looks like this and much of the other code here has been copied from 
`clang`. If the code is identical to what is in `clang`, it should be shared 
rather than copied. Such code can be moved somewhere in 
`llvm/include/llvm/Frontend` and `llvm/lib/Frontend/`. See #136098 for some 
suggestions. That PR is still awaiting approval from the clang developers, but 
I don't anticipate any major objections.

https://github.com/llvm/llvm-project/pull/137759
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to