Skip to content

Commit 95d3cc6

Browse files
committed
[clang][cli] Port CodeGenOpts simple string flags to new option parsing system
Depends on D84668 Reviewed By: Bigcheese Original patch by Daniel Grumberg. Differential Revision: https://reviews.llvm.org/D84669
1 parent 1561807 commit 95d3cc6

File tree

5 files changed

+111
-261
lines changed

5 files changed

+111
-261
lines changed

clang/include/clang/Basic/CodeGenOptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ namespace clang {
3030
/// Bitfields of CodeGenOptions, split out from CodeGenOptions to ensure
3131
/// that this large collection of bitfields is a trivial class type.
3232
class CodeGenOptionsBase {
33+
friend class CompilerInvocation;
34+
3335
public:
3436
#define CODEGENOPT(Name, Bits, Default) unsigned Name : Bits;
3537
#define ENUM_CODEGENOPT(Name, Type, Bits, Default)

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ def err_drv_invalid_thread_model_for_target : Error<
8686
"invalid thread model '%0' in '%1' for this target">;
8787
def err_drv_invalid_linker_name : Error<
8888
"invalid linker name in argument '%0'">;
89-
def err_drv_invalid_pgo_instrumentor : Error<
90-
"invalid PGO instrumentor in argument '%0'">;
9189
def err_drv_invalid_rtlib_name : Error<
9290
"invalid runtime library name in argument '%0'">;
9391
def err_drv_unsupported_rtlib_for_platform : Error<

0 commit comments

Comments
 (0)