[PATCH] D61173: [BPF] do not generate predefined macro bpf

Alexei Starovoitov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 25 23:01:30 PDT 2019


ast added inline comments.


================
Comment at: lib/Basic/Targets/BPF.cpp:23
                                      MacroBuilder &Builder) const {
-  DefineStd(Builder, "bpf", Opts);
+  Builder.defineMacro("__bpf");
+  Builder.defineMacro("__bpf__");
----------------
I don't think anyone is using this one.
May be we can keep ` __bpf__ ` and ` __BPF__ ` only?


Repository:
  rC Clang

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

https://reviews.llvm.org/D61173





More information about the cfe-commits mailing list