[cfe-users] Replacement for -fdevirtualize?

Jeffrey Walton via cfe-users cfe-users at lists.llvm.org
Sun Oct 25 01:34:12 PDT 2015


Hi Everyone,

I'm catching a warning when trying to use -fdevirtualize under Clang.

  $ make
  /usr/local/bin/clang++ -DNDEBUG -g -O2 -fdevirtualize -march=native -c eax.cpp
  clang: warning: optimization flag '-fdevirtualize' is not supported
  ...

I believe its equivalent to Microsoft's __declspec(novtable), and I
believe/know Clang supports the MS platform.

Does Clang offer an equivalent flag?

Thanks in advance.


More information about the cfe-users mailing list