[PATCH] D70700: [WebAssembly] Mangle the argc/argv `main` as `__main_argc_argv`

Sam Clegg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 15 15:15:21 PST 2020


sbc100 accepted this revision.
sbc100 added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:5589
+  // alias for "main" in the no-argument case so that libc can detect when
+  // new-style no-argument main is in used.
+  if (llvm::Function *F = getModule().getFunction("main")) {
----------------
Add a TODO to remove this once we remove the `__original_main` thing?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70700





More information about the cfe-commits mailing list